/* =========================
   TITLE CONTAINER (NEWS CAROUSEL STYLE)
========================= */

.articles_container .title-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.articles_container .title-container .title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-context-color, #111);
  
  /* Match the inline side-by-side red line alignment */
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Horizontal Red Line matching your exact specification */
.articles_container .title-container .title::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: #E32512;
  display: block;
}


/* =========================
   LATEST SECTION (WITH HOVER ANIMATIONS)
========================= */

.articles_container .latest-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
}

.articles_container .latest-card {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    
    /* Smooth transition for the card container */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.articles_container .latest-card.is-hero {
    grid-column: 1 / -1;
    height: 420px;
}

/* 1. Zoom effect on the image */
.articles_container .latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Smooth transition for the image zoom */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Darken overlay on hover for better contrast */
.articles_container .latest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

/* HOVER STATES FOR LATEST CARDS */
.articles_container .latest-card:hover {
    transform: translateY(-4px); /* Lift the card up slightly */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* Add a soft shadow */
}

.articles_container .latest-card:hover .latest-image img {
    transform: scale(1.04); /* Smoothly zoom into the image */
}

.articles_container .latest-card:hover .latest-overlay {
    opacity: 1; /* Darken the gradient slightly */
}


/* TITLE VISIBILITY IN HERO */
.articles_container .latest-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


/* =========================
   SPACING ADJUSTMENTS
========================= */

.articles_container .latest-section + .title-container {
    margin-top: 48px;
}


/* =========================
   COMPACT LIST (PILL STYLE MENU HOVER)
========================= */

.articles_container .all-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.articles_container .compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px; 
    border-radius: 16px; 
    text-decoration: none;
    background: transparent; 
    border: 1px solid transparent; 
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* HOVER EFFECT MATCHING DROPDOWN MENU ACTIVE HIGHLIGHT */
.articles_container .compact-item:hover {
    background: rgba(227, 37, 18, 0.08); /* Transparent Red to match brand-accent */
    border-color: rgba(227, 37, 18, 0.4);  /* Subtle red borders */
}

.articles_container .compact-image {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.articles_container .compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articles_container .compact-title {
    font-size: 15px; 
    font-weight: 600;
    color: var(--text-context-color, #374151); 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

/* Change title color to matching brand red on hover */
.articles_container .compact-item:hover .compact-title {
    color: #E32512; 
}


/* =========================
   RESPONSIVE OVERRIDES
========================= */

@media (max-width: 800px) {
    .articles_container .latest-section {
        grid-template-columns: 1fr; 
    }

    .articles_container .latest-card {
        height: 220px;
    }

    .articles_container .latest-card.is-hero {
        height: 320px;
    }

    .articles_container .latest-title {
        font-size: 18px;
    }
}