/* News section custom styles for AlternativeStack */

/* News container specific styles */
.NewsItemContent_container__QXQFw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.NewsItemContent_newsItem__oFTob {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.NewsItemContent_main__y6jKH {
    flex: 1;
    padding-right: 0;
}

.NewsItemContent_main__y6jKH img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--brandLight4);
}

.NewsItemContent_sidebar__6Rx69 {
    width: 100%;
    margin-top: 30px;
}

/* Headings */
.Heading_h1___Cf5Y {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 15px 0;
    color: #232147;
}

.Heading_h3__K2Ph3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.Heading_h4__Zlrjx {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Content formatting */
.md_News {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.md_News p {
    margin-bottom: 1rem;
    display: block;
}

.md_News ul, .md_News ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.md_News ul li, .md_News ol li {
    margin-bottom: 0.5rem;
}

.md_News a {
    color: #0d6efd;
    text-decoration: underline;
}

/* Meta text */
.meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.NewsForListMeta_newsMeta__A_CtM {
    font-size: 0.75rem;
    color: #6c757d;
}

.NewsMeta_newsMeta__mbrX0 {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

.ListOfUsers_profilePictures__PPECr {
    display: flex;
    align-items: center;
}

.ListOfUsers_metaText__wof8s {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 8px;
}

/* Related news list */
.NewsItemContent_sourceLinks__TA_HR {
    margin-top: 20px;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.NewsItemContent_sourceLinks__TA_HR h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #232147;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.NewsItemContent_sourceLinks__TA_HR ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.NewsItemContent_sourceLinks__TA_HR li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.NewsItemContent_sourceLinks__TA_HR li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.NewsFeedItem_newsItemWrapper__X1TsQ {
    margin-bottom: 4px;
}

.NewsFeedItem_newsItemLink__VweUz {
    font-size: 0.9rem;
}

.NewsForListMeta_newsMeta__A_CtM {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.NewsForListMeta_newsMeta__A_CtM a {
    color: #037CD4;
    text-decoration: none;
}

.NewsForListMeta_newsMeta__A_CtM a:hover {
    text-decoration: underline;
}

.NewsFeedItem_newsItemLink__VweUz a {
    color: #232147;
    text-decoration: none;
    font-weight: 500;
}

.NewsFeedItem_newsItemLink__VweUz a:hover {
    text-decoration: underline;
}

/* App box styling */
.AppItemBox_miniApp__u9tua {
    padding: 18px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.AppItemBox_miniApp__u9tua:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* Product icon and name */
.AppItemBox_iconName__Rdps4 {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.AppItemBox_iconName__Rdps4 img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    margin-right: 6px;
    object-fit: contain;
}

.AppItemBox_appName__fXk1j {
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: auto;
    color: #232147;
    text-decoration: none;
}

.AppItemBox_appName__fXk1j:hover {
    text-decoration: underline;
}

.AppItemBox_heart__QmvW_ {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.AppItemBox_heart__QmvW_ i {
    margin-right: 4px;
    color: #ff5a5f;
}

/* Badge row styling */
.BadgeRow_badgeRow__3DFtW {
    margin: 12px 0;
}

.BadgeRow_content__JU_JK {
    display: inline;
}

/* Badges styling */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 0;
    margin: 8px 0;
}

.badges li {
    list-style: none;
    margin: 2px;
}

.badges li a, .badges li span {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background-color: #f8f9fa;
    color: #232147;
    text-decoration: none;
}

.badges li.badge-more-important a {
    background-color: #e7f5ff;
    color: #037CD4;
}

.badges li.badge-license span {
    background-color: #e9f8f3;
    color: #007f59;
}

.AppItemBox_desc__wGDF7 {
    margin: 10px 0;
    line-height: 1.4;
    color: #6c757d;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.2s;
    cursor: pointer;
}

.share-btn:hover {
    color: #fff;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
    border-color: #3b5998;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}

.share-btn.copy-link:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Comment section */
.Box_box__20D8q {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.Box_transparentBox__Dj_jC {
    background-color: transparent;
}

.Box_boxTitle__xch1U {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Breadcrumbs */
.Breadcrumbs_wrapper__0Hhr7 {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
}

.Breadcrumbs_defaultBg__m5Yh3 {
    background-color: #f8f9fa;
}

.Breadcrumbs_breadcrumb__NP8Dv {
    display: inline;
    font-size: 0.85rem;
    position: relative;
}

.Breadcrumbs_breadcrumb__NP8Dv:not(:last-child):after {
    content: "/";
    margin: 0 8px;
    color: #6c757d;
}

.Breadcrumbs_breadcrumb__NP8Dv a {
    color: #232147;
    text-decoration: none;
}

.Breadcrumbs_breadcrumb__NP8Dv a:hover {
    text-decoration: underline;
}

/* Ensure breadcrumb container is properly displayed */
nav[aria-label="Breadcrumb"] {
    display: flex;
    width: 100%;
}

nav[aria-label="Breadcrumb"] ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

/* Related Meta section */
.NewsItemContent_relatedMeta__M3oGl {
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.NewsItemContent_relatedMeta__M3oGl a {
    color: #0d6efd;
    text-decoration: none;
}

.NewsItemContent_relatedMeta__M3oGl a:hover {
    text-decoration: underline;
}

.meta.f-end {
    display: flex;
    justify-content: flex-end;
}

.meta.f-end a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
}

.meta.f-end a:hover {
    color: #037CD4;
}

/* Toast notification for copy link action */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #232147;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* News index page styles */
.news-featured {
    margin-bottom: 40px;
}

.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
}

.featured-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Category and tag pages */
.category-header, .tag-header {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.category-title, .tag-title {
    font-size: 2rem;
    color: #232147;
    margin-bottom: 10px;
}

.category-description {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .NewsItemContent_newsItem__oFTob {
        flex-direction: row;
        gap: 30px;
    }
    
    .NewsItemContent_main__y6jKH {
        flex: 2;
        padding-right: 20px;
    }
    
    .NewsItemContent_sidebar__6Rx69 {
        flex: 1;
        margin-top: 0;
        align-self: flex-start;
    }
    
    .Heading_h1___Cf5Y {
        font-size: 2.5rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .NewsItemContent_container__QXQFw {
        padding: 0 15px;
    }
    
    .NewsItemContent_main__y6jKH img {
        width: 100%;
        height: auto;
    }
    
    .AppItemBox_miniApp__u9tua, 
    .NewsItemContent_sourceLinks__TA_HR {
        padding: 15px;
    }
    
    .Heading_h1___Cf5Y {
        font-size: 1.8rem;
    }
}

/* Utility classes */
.maxLine2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spacer-1 { height: 6px; }
.spacer-2 { height: 12px; }
.spacer-3 { height: 18px; }
.spacer-4 { height: 24px; }
.spacer-5 { height: 30px; }
.spacer-6 { height: 36px; }

.f-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.f-end {
    display: flex;
    justify-content: flex-end;
}

/* Link styling */
.no-link-color {
    color: inherit;
    text-decoration: none;
}

.no-link-color:hover {
    text-decoration: underline;
}

/* Fixed pagination styling */
.pagination-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.pagination-container .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-container .page-item {
    margin: 0 3px;
}

.pagination-container .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #232147;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-container .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #0056b3;
}

.pagination-container .page-item.active .page-link {
    background-color: #232147;
    border-color: #232147;
    color: #fff;
}

.pagination-container .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    cursor: not-allowed;
}