/* News Detail Page Styles */

/* Banner Section */
.news-banner {
    width: 100%;
    background-color: #fff;
}
.news-banner__img {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.news-banner__img img, .news-paragraph img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-banner__img figcaption {
    font-style: italic;
    color: #7C7C7C;
    margin-top: 10px;
    line-height: 1.4;
    text-align: center;
}

/* Content Section */
.news-content {
    background-color: #fff;
}
.news-content__wrap {
    display: flex;
    flex-wrap: wrap;
}
.news-content__main {
    width: 100%;
}
.news-content__header {
    width: 100%;
}
.news-content__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.news-category {
    display: inline-block;
    background-color: #EA4335;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
}
.news-content__title {
    font-family: "Anybody", serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0C0C0C;
}
.news-content__meta {
    display: flex;
    align-items: center;
}
.news-date {
    color: #7C7C7C;
    font-weight: 400;
}
.news-content__description {
    line-height: 1.6;
    color: #0C0C0C;
    font-weight: 500;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Banner inside content - with border bottom */
.news-content__main .news-banner {
    width: 100%;
}
.news-content__body {
    line-height: 1.8;
    color: #0C0C0C;
    text-align: justify;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
.news-paragraph {
    margin-bottom: 1.5em;
}
.news-paragraph p {
    margin-bottom: 1em;
}
.news-paragraph h2,
.news-paragraph h3,
.news-paragraph h4 {
    font-weight: 700;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}
.news-paragraph ul,
.news-paragraph ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}
.news-paragraph li {
    margin-bottom: 0.5em;
    list-style: disc;
}
.news-paragraph ol li {
    list-style: decimal;
}
.news-paragraph a {
    color: #EA4335;
    text-decoration: underline;
}
.news-paragraph img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}
.news-paragraph blockquote {
    border-left: 4px solid #EA4335;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #7C7C7C;
}

/* Sidebar */
.news-content__sidebar {
    position: sticky;
}
.news-share h3 {
    font-family: "Montserrat", serif;
    font-weight: 700;
    color: #0C0C0C;
}
.news-share__list {
    display: flex;
    gap: 12px;
}
.news-share__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #D9D9D9;
    color: #0C0C0C;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.news-share__item:hover {
    background-color: #EA4335;
    border-color: #EA4335;
    color: #fff;
}

/* Related News Section */
.news-related {
    background-color: #F1F1F1;
}
.news-related__title {
    font-family: "Anybody", serif;
    font-weight: 700;
    color: #0C0C0C;
}
.news-related__list {
    display: grid;
}
.news-related__item {
    display: block;
    background-color: #fff;
    text-decoration: none;
    overflow: hidden;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.news-related__item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.news-related__item:hover .news-related__img img {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}
.news-related__img {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.news-related__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}
.news-related__content {
    width: 100%;
}
.news-related__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.news-related__categories .news-category {
    font-size: 10px;
    padding: 4px 8px;
}
.news-related__name {
    font-family: "Montserrat", serif;
    font-weight: 600;
    color: #0C0C0C;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-related__date {
    color: #7C7C7C;
    font-weight: 400;
}
.news-related__action {
    text-align: center;
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
    /* Banner */
    .news-banner .container {
        padding: 0;
    }
    .news-banner__img {
        max-height: 80vh;
    }
    .news-banner__img img {
        max-height: 60vh;
    }

    /* Content */
    .news-content .container {
        padding: 4.1666666667vw 12.5%;
    }
    .news-content__wrap {
        gap: 4.1666666667vw;
    }
    .news-content__main {
        flex: 0 0 calc(70% - 2.0833333333vw);
        max-width: calc(70% - 2.0833333333vw);
    }
    .news-content__header {
        margin-bottom: 2.6041666667vw;
    }
    .news-category {
        font-size: 0.7291666667vw;
        padding: 0.4166666667vw 0.8333333333vw;
    }
    .news-content__title {
        font-size: 2.9166666667vw;
        margin-top: 1.0416666667vw;
        margin-bottom: 1.0416666667vw;
    }
    .news-date {
        font-size: 0.9375vw;
    }
    .news-content__description {
        font-size: 1.25vw;
        margin-bottom: 2.0833333333vw;
    }
    .news-content__main .news-banner {
        margin-bottom: 2.0833333333vw;
        padding-bottom: 2.0833333333vw;
        border-bottom: 1px solid #D9D9D9;
    }
    .news-content__main .news-banner .container {
        padding: 0;
    }
    .news-content__body {
        font-size: 1.0416666667vw;
    }
    .news-paragraph h2 {
        font-size: 1.5625vw;
    }
    .news-paragraph h3 {
        font-size: 1.25vw;
    }
    .news-paragraph h4 {
        font-size: 1.0416666667vw;
    }

    /* Sidebar */
    .news-content__sidebar {
        flex: 0 0 calc(30% - 2.0833333333vw);
        max-width: calc(30% - 2.0833333333vw);
        top: 7.8125vw;
    }
    .news-share h3 {
        font-size: 1.0416666667vw;
        margin-bottom: 1.0416666667vw;
    }

    /* Related */
    .news-related .container {
        padding: 5.2083333333vw 12.5%;
    }
    .news-related__title {
        font-size: 2.9166666667vw;
        margin-bottom: 2.6041666667vw;
    }
    .news-related__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5625vw;
    }
    .news-related__content {
        padding: 1.5625vw;
    }
    .news-related__name {
        font-size: 1.25vw;
        margin-top: 0.78125vw;
        margin-bottom: 0.78125vw;
    }
    .news-related__date {
        font-size: 0.8333333333vw;
    }
    .news-related__action {
        margin-top: 2.6041666667vw;
    }
}

/* Mobile Styles */
@media screen and (max-width: 1023px) {
    /* Banner */
    .news-banner .container {
        padding: 0;
    }
    .news-banner__img {
        max-height: 50vh;
    }
    .news-banner__img img {
        max-height: 50vh;
    }

    /* Content */
    .news-content .container {
        padding: 8vw 5.3333333333%;
    }
    .news-content__wrap {
        flex-direction: column;
    }
    .news-content__main {
        order: 1;
    }
    .news-content__header {
        margin-bottom: 6.4vw;
    }
    .news-category {
        font-size: 2.6666666667vw;
        padding: 1.3333333333vw 2.6666666667vw;
    }
    .news-content__title {
        font-size: 6.4vw;
        margin-top: 4vw;
        margin-bottom: 4vw;
    }
    .news-date {
        font-size: 3.7333333333vw;
    }
    .news-content__description {
        font-size: 4.2666666667vw;
        margin-bottom: 5.3333333333vw;
    }
    .news-content__main .news-banner {
        margin-bottom: 5.3333333333vw;
        padding-bottom: 5.3333333333vw;
        border-bottom: 1px solid #D9D9D9;
    }
    .news-content__main .news-banner .container {
        padding: 0;
    }
    .news-content__body {
        font-size: 4vw;
    }
    .news-paragraph h2 {
        font-size: 5.3333333333vw;
    }
    .news-paragraph h3 {
        font-size: 4.8vw;
    }
    .news-paragraph h4 {
        font-size: 4.2666666667vw;
    }

    /* Sidebar */
    .news-content__sidebar {
        order: 2;
        margin-top: 8vw;
        padding-top: 8vw;
        border-top: 1px solid #D9D9D9;
        position: static;
    }
    .news-share h3 {
        font-size: 4.2666666667vw;
        margin-bottom: 4vw;
    }
    .news-share__item {
        width: 12vw;
        height: 12vw;
    }

    /* Related */
    .news-related .container {
        padding: 10.6666666667vw 5.3333333333%;
    }
    .news-related__title {
        font-size: 6.4vw;
        margin-bottom: 6.4vw;
    }
    .news-related__list {
        grid-template-columns: repeat(1, 1fr);
        gap: 5.3333333333vw;
    }
    .news-related__content {
        padding: 5.3333333333vw;
    }
    .news-related__name {
        font-size: 4.8vw;
        margin-top: 2.6666666667vw;
        margin-bottom: 2.6666666667vw;
    }
    .news-related__date {
        font-size: 3.2vw;
    }
    .news-related__action {
        margin-top: 8vw;
    }
}
