/**
 * Stylesheet: Home page with latest
 * Usage: layouts/index.html and content/_index.md
 * Variables: static/assets/css/variables.css
 */
 
 

.home-wrapper {
    display: flex !important;
    flex-wrap: wrap; 
    gap: 40px;
    align-items: flex-start;
}

.home-main {
    flex: 2;
    min-width: 300px;
}

.home-sidebar {
    flex: 1;
    min-width: 300px;
}

/* ---------------------------------------------------------------------------
   Video
--------------------------------------------------------------------------- */
.video-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 12, 79, 0.12);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
    .home-wrapper {
        flex-direction: column;
    }
}

/* ---------------------------------------------------------------------------
   Section heading
--------------------------------------------------------------------------- */

.latest_title_section {
    font-family: var(--dv-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dv-navy);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dv-red);
}


/* ---------------------------------------------------------------------------
   List — stacked vertically
--------------------------------------------------------------------------- */

.latest_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--dv-font);
}


/* ---------------------------------------------------------------------------
   Item card
--------------------------------------------------------------------------- */

.latest_item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--dv-bg);
    border: 1px solid var(--dv-border);
    padding: 20px 24px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(12, 12, 79, 0.10);
    border-color: var(--dv-navy);
}


/* ---------------------------------------------------------------------------
   Type badge
--------------------------------------------------------------------------- */

.latest_badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: var(--dv-navy);
    color: #FFFFFF;
    font-size: 0.70rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    align-self: flex-start;
}


/* ---------------------------------------------------------------------------
   Content
--------------------------------------------------------------------------- */

.latest_description {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--dv-navy);
    word-break: break-word;
}

.latest_title {
    margin-top: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dv-red);
    word-break: break-word;
}

/* ---------------------------------------------------------------------------
   "Read more" link button
--------------------------------------------------------------------------- */

.latest_link {
    align-self: flex-start;
    padding: 6px 14px;
    border: 1px solid var(--dv-navy);
    border-radius: 8px;
    background-color: transparent;
    color: var(--dv-navy);
    font-family: var(--dv-font);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.latest_link:hover {
    background-color: var(--dv-red);
    border-color: var(--dv-red);
    color: #FFFFFF;
}

.latest_link:focus:not(:focus-visible) {
    outline: none;
}
.latest_link:focus-visible {
    outline: 2px solid var(--dv-red);
    outline-offset: 2px;
}


/* ---------------------------------------------------------------------------
   Empty state
--------------------------------------------------------------------------- */

.no_latest {
    font-family: var(--dv-font);
    font-size: 0.9rem;
    color: var(--dv-navy);
    opacity: 0.6;
}
