/* CSS Reset & Precise Theme Variables */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
  --lab7-bg: #fcfcfc;
  --lab7-text-main: #000000;
  --lab7-text-muted: #222222;
  --lab7-text-light: #666666;
  --lab7-accent-orange: #e05b2b;
  --lab7-border-color: #e5e8eb;
  --lab7-card-bg: #ffffff;
  --transition-speed: 0.25s;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'DINNextLTArabicRegular';
  --font-tertiary: 'DINNextLTArabicMedium';
  --font-quaternary: 'DINNextLTArabicBold';
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Layout matching the exact margins */
.lab7-news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 24px 24px 24px;
    border-top: 1px solid #e7e7e7;
}

/* Main Multi-Column Split Framework */
.lab7-news-workspace {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

/* Main News Feed Container */
.lab7-news-main-feed {
    padding: 0;
}

/* Investment Prominent Spotlight Unit - Borderless Absolute Overlay Setup */
.lab7-news-spotlight {
    position: relative;
    background-color: #050b11;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2px;
    height: 420px;
}

/* Left-aligned overlay content container over the graphics context */
.lab7-news-spotlight__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

.lab7-news-spotlight__tag {
    color: #ff6e40;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: var(--font-secondary);
}

.lab7-news-spotlight__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    font-family: var(--font-secondary);
}

.lab7-news-spotlight__description {
    color: #b0b5b9;
    font-size: 13.5px;
    margin-bottom: 28px;
    font-weight: 400;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.lab7-news-spotlight__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition-speed);
    font-family: var(--font-secondary);
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: var(--lab7-accent-orange);
}

.lab7-news-spotlight__link span,
.lab7-news-spotlight__link:hover {
    color: var(--lab7-accent-orange);
}

/* Background asset covering full context container */
.lab7-news-spotlight__image-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lab7-news-spotlight__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contrast linear masking layer precisely shadowing text */
.lab7-news-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 45%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.lab7-news-spotlight__date {
    position: absolute;
    bottom: 20px;
    right: 20px;
    /*background-color: rgba(0, 0, 0, 0.4);*/
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
   /* backdrop-filter: blur(4px);*/
    z-index: 3;
    color: #e0e0e0;
}

.lab7-news-spotlight__date time.datetime {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-tertiary);
}

/* 
   UNIFIED FEED CARDS CONTAINER wrapper 
   Box-shadow removed and replaced with top, left, and right borders only.
*/
.lab7-news-feed-bundle {
    background-color: var(--lab7-card-bg);
    border-top: 1px solid var(--lab7-border-color);
    border-left: 1px solid var(--lab7-border-color);
    border-right: 1px solid var(--lab7-border-color);
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 16px;
}

/* Inner row components inside the shared card container */
.lab7-news-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--lab7-border-color);
    gap: 16px;
    margin-bottom: 24px;
}

.lab7-news-filter-tabs {
    display: flex;
    gap: 30px;
}

.lab7-news-filter-btn, .lab7-news-filter-btn a {
    background: none;
    border: none;
    font-size: 14px;
    color: #636466;
    cursor: pointer;
    padding-bottom: 16px;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-secondary);
}

.lab7-news-filter-btn a.bef-link-active {
    color: var(--lab7-accent-orange);
}

.lab7-news-filter-btn a.bef-link-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lab7-accent-orange);
}

.lab7-news-search {
    position: relative;
    width: 220px;
    margin-bottom: 12px;
}

.lab7-news-search__input {
    width: 100%;
    padding: 4px 10px 8px 28px;
    border: 1px solid var(--lab7-border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background-color: var(--lab7-bg);
    color: var(--lab7-text-main);
    font-family: 'DINNextLTArabicMedium';
}

.lab7-news-search__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #999999;
    pointer-events: none;
}
.lab7-news-search__icon svg{width: 16px; height: 16px;}

/* Upper Card Stream Grid - Embedded within the triple-bordered wrap */
.lab7-news-feed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.lab7-news-card {
    background-color: var(--lab7-bg);
    border: 1px solid var(--lab7-border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed);
}

.lab7-news-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #f2f4f7;
    position: relative;
}

.lab7-news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lab7-news-card__play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lab7-news-card__play-icon {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 9px solid #ffffff;
    margin-left: 2px;
}

.lab7-news-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lab7-news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lab7-news-card__tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999999;
    letter-spacing: 0.3px;
}

/* Customized colorful tags according to screenshot content blocks */
.lab7-news-card__tag { color: #F26722; }

.lab7-news-card__date, .lab7-news-card__date .datetime {
    font-size: 10px;
    color: #636466;
    font-family: var(--font-tertiary);
}

.lab7-news-card__title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lab7-text-main);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    font-family: var(--font-secondary);
}

.lab7-news-card__footer {
    margin-top: auto;
}

.lab7-news-card__action-link {
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-secondary);
}

.lab7-news-card__action-link span {
    color: #F26722;
    font-family: var(--font-quaternary);
    margin-top: -2px;
}      


/* Secondary Row Layout displaying asymmetric split cards underneath */
.lab7-news-secondary-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lab7-news-horizontal-card {
    background-color: var(--lab7-bg);
    border: 1px solid var(--lab7-border-color);
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 175px 1fr;
    height: 135px;
}

.lab7-news-horizontal-card__media {
    width: 100%;
    height: 100%;
    background-color: #f2f4f7;
}

.lab7-news-horizontal-card__img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
}

.lab7-news-horizontal-card__body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab7-news-horizontal-card__tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.lab7-news-horizontal-card__tag { color: #F26722; }


.lab7-news-horizontal-card__title {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--lab7-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lab7-news-horizontal-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab7-news-horizontal-card__date,.lab7-news-horizontal-card__date .datetime {
    font-size: 10px;
    color: #636466;
    font-family: var(--font-tertiary);
}

.lab7-news-horizontal-card__action-link {
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap:15px;
    font-family: var(--font-secondary);
}

.lab7-news-horizontal-card__action-link span {
    color: #F26722;
    font-family: var(--font-quaternary);
    margin-top: -2px;
}  

/* 
   Sidebar Container 
   Box-shadow removed and replaced with top, left, and right borders only.
*/
.lab7-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    background-color: var(--lab7-card-bg);
    border-top: 1px solid var(--lab7-border-color);
    border-left: 1px solid var(--lab7-border-color);
    border-right: 1px solid var(--lab7-border-color);
    border-bottom: 1px solid var(--lab7-border-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius:12px;
    padding: 24px 20px;
}

.lab7-news-sidebar__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.lab7-news-sidebar__heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--lab7-text-main);
    font-family: var(--font-secondary);
}

.lab7-news-sidebar__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab7-news-sidebar__view-all {
    font-size: 11px;
    color: var(--lab7-accent-orange);
    font-weight: 600;
    font-family: var(--font-secondary);
}

.lab7-news-sidebar__arrows {
    display: flex;
    gap: 6px;
    color: #999999;
    font-size: 11px;
    cursor: pointer;
}
.lab7-news-sidebar__arrows span {font-family: var(--font-secondary);}

.lab7-news-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab7-news-featured-item {
    background-color: var(--lab7-bg);
    border: 1px solid var(--lab7-border-color);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lab7-news-featured-item__brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab7-news-featured-item__brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.lab7-news-featured-item__brand-name img {
  width: auto;
  height: auto;
  max-width: 116px;
  max-height: 40px;
}

.lab7-news-featured-item__date,
.lab7-news-featured-item__date time.datetime  {
    font-size: 10px;
    color: #636466;
    font-family: var(--font-tertiary);
}

.lab7-news-featured-item__headline {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
    font-family: var(--font-secondary);
}

.lab7-news-featured-item__link {
    font-size: 11px;
    font-weight: 600;
    color: var(--lab7-accent-orange);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-family: var(--font-secondary);
}

/* Responsive Breakpoints matching mobile frameworks */
@media (max-width: 1200px) {
    .lab7-news-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lab7-news-secondary-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .lab7-news-workspace {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lab7-news-spotlight__content {
        width: 70%;
    }
    .lab7-news-feed-bundle, .lab7-news-sidebar {
        border-bottom: 1px solid var(--lab7-border-color);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

@media (max-width: 768px) {
    .lab7-news-header__nav {
        display: none;
    }
    .lab7-news-spotlight__content {
        width: 100%;
        padding: 24px;
    }
    .lab7-news-spotlight__title {
        font-size: 22px;
    }
    .lab7-news-filter-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        gap: 10px;
    }
    .lab7-news-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .lab7-news-search {
        width: 100%;
    }
    .lab7-news-feed-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
  .lab7-news-filter-tabs {
    flex-direction: column;
    gap: 0px;
  }
  .lab7-news-filter-btn a.bef-link-active::after{ bottom: 10px;}
}
