/* =========================================================
   LATEST INDUSTRY NEWS
   ========================================================= */

.latest-news {
    position: relative;
    padding: 100px 5%;
    background: #f7f7f7;
    overflow: hidden;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.news-header {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.news-header .section-tag {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 17px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: 30px;
    background: rgba(245, 130, 32, 0.07);
    color: #f58220;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.news-header h2 {
    margin: 0 0 16px;
    color: #403d3d;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
}

.news-header p {
    max-width: 720px;
    margin: 0 auto;
    color: #6d6d6d;
    font-size: 16px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   LIVE NEWS GRID
   --------------------------------------------------------- */

.news-container {
    max-width: 1250px;
    min-height: 300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}


/* ---------------------------------------------------------
   NEWS CARD — no image; a colored top accent + category
   pill carries the visual weight instead
   --------------------------------------------------------- */

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 130, 32, 0.25);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.10);
}

.news-card-top {
    padding: 20px 24px 0;
    background: linear-gradient(90deg, #f58220, #ffb066);
    height: 6px;
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* category pill sits just below the accent bar, overlapping
   slightly so it reads as anchored to the card, not floating */
.news-category {
    position: absolute;
    top: 18px;
    left: 24px;
    padding: 6px 13px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(245, 130, 32, 0.3);
    color: #f58220;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   NEWS CONTENT
   --------------------------------------------------------- */

.news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 34px 24px 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;

    color: #8b8b8b;
    font-size: 12px;
}

.news-meta .news-source {
    color: #f58220;
    font-weight: 600;
}

.news-meta .news-dot {
    color: #c2c2c2;
}


.news-content h3 {
    margin: 0 0 13px;

    color: #3f3b3b;

    font-size: 20px;
    line-height: 1.42;
    font-weight: 700;
}


.news-content p {
    margin: 0 0 21px;

    color: #707070;

    font-size: 14px;
    line-height: 1.7;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;

    color: #f58220;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: gap 0.25s ease;
}

.news-read-more:hover {
    gap: 12px;
}

.news-read-more span {
    font-size: 17px;
    line-height: 1;
}


/* ---------------------------------------------------------
   LOADING
   --------------------------------------------------------- */

.news-loading {
    grid-column: 1 / -1;

    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #777;
    font-size: 14px;
    gap: 15px;
}

.news-loader {
    width: 34px;
    height: 34px;

    border: 3px solid #e8e8e8;
    border-top-color: #f58220;

    border-radius: 50%;

    animation: newsSpin 0.8s linear infinite;
}

@keyframes newsSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------------------------------------------------------
   ERROR MESSAGE
   --------------------------------------------------------- */

.news-error {
    grid-column: 1 / -1;

    padding: 40px 20px;

    text-align: center;

    color: #777;
    font-size: 14px;
}

.news-error strong {
    display: block;
    margin-bottom: 7px;
    color: #444;
}


/* =========================================================
   VIEW ALL NEWS
   ========================================================= */

.news-button {
    margin-top: 55px;
    text-align: center;
}

.view-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 13px 26px;

    border: 1px solid #f58220;
    border-radius: 30px;

    color: #f58220;
    background: transparent;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.view-news-btn:hover {
    background: #f58220;
    color: #ffffff;
}

.view-news-btn span {
    transition: transform 0.25s ease;
}

.view-news-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-header h2 {
        font-size: 36px;
    }

}


@media (max-width: 680px) {

    .latest-news {
        padding: 70px 5%;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .news-header {
        margin-bottom: 40px;
    }

    .news-header h2 {
        font-size: 30px;
    }

    .news-header p {
        font-size: 14px;
    }

}