﻿.block_title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 30px;
    border-bottom: 2px dotted var(--color-red);
    position: relative;
}

.bg-red {
    background: var(--color-red);
}

.block_title > span {
    color: #ffffff;
    height: auto;
    line-height: 1;
    padding: 10px 20px 10px 50px; /* left padding for icon space */
    position: relative;
    display: inline-block;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
}

/* Icon before the span text */
.block_title > span:before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="%23FFFFFF"><path d="M280-280v-400h400v400H280Zm80-80h240v-240H360v240ZM200-200v80q-33 0-56.5-23.5T120-200h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T200-840v80Zm80 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80q0 33-23.5 56.5T760-120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80q33 0 56.5 23.5T840-760h-80Z"/></svg>');
}

.card-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

.left-column,
.right-column {
  flex: 1;
  min-width: 300px;
}

/* Common card styles */
.left-column .card,
.right-column .card {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: white;
}

.card-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  width: 100%;
}

.label {
  background-color: var(--color-red);
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 600;
}

.title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 10px;
}

.meta {
  font-size: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Meta icons with SVGs */
.meta span, .meta .date {
  display: flex;
  align-items: center;
  padding-left: 20px;
  position: relative;
}

.meta span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23ec0000"><path d="M480-880q83 0 155.5 31.5t127 86q54.5 54.5 86 127T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880Zm0 720q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Zm-80-520q0 33 23.5 56.5T480-600q33 0 56.5-23.5T560-680q0-33-23.5-56.5T480-760q-33 0-56.5 23.5T400-680Zm80 120q-53 0-116.5 26T300-460v160q0 44 63 74t137 24v-80q-35 2-66-5t-54-21q5-23 35-37.5t65-14.5q35 0 67.5 16t32.5 42v82q44-16 62-38.5t18-41.5v-160q0-48-63.5-74T480-560Zm0 180q-21 0-35.5-14.5T430-430q0-21 14.5-35.5T480-480q21 0 35.5 14.5T530-430q0 21-14.5 35.5T480-380Zm0-100Z"/></svg>'); /* Update with your actual user icon path */
}

.meta .date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="%23ec0000"><path d="M216-96q-29.7 0-50.85-21.5Q144-139 144-168v-528q0-29 21.15-50.5T216-768h72v-96h72v96h240v-96h72v96h72q29.7 0 50.85 21.5Q816-725 816-696v528q0 29-21.15 50.5T744-96H216Zm0-72h528v-360H216v360Zm0-432h528v-96H216v96Zm0 0v-96 96Zm264.21 216q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm312 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 144q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm312 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Z" /></svg>');
}

/* Right column uses CSS Grid for 2 cards per row */
.right-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Responsive: tablet and mobile */
@media (max-width: 768px) {
  .card-wrapper {
    flex-direction: column;
  }

  .right-column {
    grid-template-columns: 1fr; /* 1 card per row */
  }

  .left-column .card,
  .right-column .card {
    aspect-ratio: auto;
  }
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.category-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #eeeeee;
    cursor: pointer;
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #ec000014, #9900000a);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(236, 0, 0, 0.15);
    border-color: rgba(236, 0, 0, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), #990000);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}
.category-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--border-color);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.category-card:hover .category-name {
    color: var(--color-red);
}

.articles-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    padding: 4px 10px;
    border-radius: 20px;
}

.articles-count:before {
    content: "";
    position: absolute;
    right: 80%;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="%237F8C8D"><path d="M280-280h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm-80 480q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z"/></svg>');
}
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), #990000);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.category-card:hover .stats-bar {
    opacity: 1;
}

@media (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-card {
        height: 140px;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .category-name {
        font-size: 1.3rem;
    }

    .category-card {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .category-name {
        font-size: 1.3rem;
    }

    .category-card {
        height: 110px;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(236, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 0;
    padding-top: 56.25%;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-red);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.article-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: aliceblue;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--color-red);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(248, 248, 248, 0.9);
    border-top: 1px solid #eeeeee;
    color: #666666;
    font-size: 0.9rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: aliceblue;
}

.author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date > time:before {
    content: "";
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="%23ec0000"><path d="M216-96q-29.7 0-50.85-21.5Q144-139 144-168v-528q0-29 21.15-50.5T216-768h72v-96h72v96h240v-96h72v96h72q29.7 0 50.85 21.5Q816-725 816-696v528q0 29-21.15 50.5T744-96H216Zm0-72h528v-360H216v360Zm0-432h528v-96H216v96Zm0 0v-96 96Zm264.21 216q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm312 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 144q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm-156 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Zm312 0q-15.21 0-25.71-10.29t-10.5-25.5q0-15.21 10.29-25.71t25.5-10.5q15.21 0 25.71 10.29t10.5 25.5q0 15.21-10.29 25.71t-25.5 10.5Z" /></svg>');
}
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), #990000);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.article-card:hover .stats-bar {
    opacity: 1;
}

@media (max-width: 1199px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .article-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.4rem;
    }
}
