/* =========================================================

   FRONTEND NEWS - MODERN FEED

========================================================= */

:root {

    --news-bg: #f4f7fb;

    --news-card: #ffffff;

    --news-border: #e4eaf1;

    --news-text: #24364b;

    --news-title: #0f2f56;

    --news-muted: #7a8a9d;

    --news-primary: #0b66ad;

    --news-primary-dark: #084f87;

    --news-danger: #e43d54;

    --news-soft-blue: #eef6fd;

    --news-soft-gray: #f7f9fc;

}

/* =========================================================

   PAGE

========================================================= */

.news-page {

    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

    padding: 24px 16px 60px;

    background:

        linear-gradient(

            180deg,

            #f8fbff 0%,

            var(--news-bg) 100%

        );

}

.news-container {

    width: 100%;

    max-width: 840px;

    margin: 0 auto;

}

/* =========================================================

   FEED

========================================================= */

.news-feed {

    display: flex;

    flex-direction: column;

    gap: 24px;

}

/* =========================================================

   CARD

========================================================= */

.news-card {

    width: 100%;

    overflow: hidden;

    border: 1px solid var(--news-border);

    border-radius: 18px;

    background: var(--news-card);

    box-shadow:

        0 8px 28px

        rgba(15, 47, 86, 0.07);

    transition:

        transform 0.2s ease,

        box-shadow 0.2s ease;

}

.news-card:hover {

    transform: translateY(-2px);

    box-shadow:

        0 12px 32px

        rgba(15, 47, 86, 0.10);

}

/* =========================================================

   CARD HEADER

========================================================= */

.news-card-header {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px 18px 8px;

}

.news-card-avatar {

    flex: 0 0 auto;

    width: 46px;

    height: 46px;

    box-sizing: border-box;

    padding: 3px;

    overflow: hidden;

    border: 1px solid #dce7f0;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:

        0 2px 10px

        rgba(15, 47, 86, 0.08);

}

.news-card-avatar img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    border-radius: 50%;

}

.news-card-header-info {

    min-width: 0;

    flex: 1;

}

.news-card-header-info h2 {

    margin: 0;

    color: var(--news-title);

    font-size: 17px;

    font-weight: 700;

    line-height: 1.4;

    overflow-wrap: anywhere;

}

.news-card-meta {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 4px;

    color: var(--news-muted);

    font-size: 11px;

    font-weight: 500;

}

.news-card-meta i {

    color: #97a7b8;

}

/* =========================================================

   CONTENT

========================================================= */

.news-card-content {

    padding: 8px 18px 15px;

}

.post-content {

    color: var(--news-text);

    font-size: 14px;

    line-height: 1.7;

    overflow-wrap: anywhere;

}

.post-content.collapsed {

    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;
    line-clamp: 3;

}

/* =========================================================

   SHOW MORE

========================================================= */

.show-more-btn {

    display: inline-flex;

    align-items: center;

    margin-top: 4px;

    padding: 2px 0;

    border: 0;

    background: transparent;

    color: var(--news-primary);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}

.show-more-btn:hover {

    color: var(--news-primary-dark);

    text-decoration: underline;

}

/* =========================================================

   MEDIA SLIDER

========================================================= */

.post-slider {

    position: relative;

    width: 100%;

    overflow: hidden;

    background:

        linear-gradient(

            135deg,

            #0c1727,

            #111f32

        );

}

.post-slider-track {

    display: flex;

    width: 100%;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scroll-behavior: smooth;

    scrollbar-width: none;

    overscroll-behavior-x: contain;

}

.post-slider-track::-webkit-scrollbar {

    display: none;

}

.post-slide {

    flex: 0 0 100%;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    scroll-snap-align: start;

    background:

        linear-gradient(

            135deg,

            #0c1727,

            #111f32

        );

}

.post-slide img,

.post-slide video {

    display: block;

    width: 100%;

    height: 390px;

    object-fit: contain;

    background: transparent;

}

/* =========================================================

   SLIDER ARROWS

========================================================= */

.post-slider-arrow {

    position: absolute;

    top: 50%;

    z-index: 10;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,0.3);

    border-radius: 50%;

    background: rgba(255,255,255,0.90);

    color: #183650;

    box-shadow:

        0 4px 15px

        rgba(0,0,0,0.18);

    cursor: pointer;

    backdrop-filter: blur(6px);

    transform: translateY(-50%);

    transition: all 0.18s ease;

}

.post-slider-arrow:hover {

    background: #ffffff;

    transform:

        translateY(-50%)

        scale(1.07);

}

.post-slider-prev {

    left: 12px;

}

.post-slider-next {

    right: 12px;

}

/* =========================================================

   COUNTER

========================================================= */

.post-slider-counter {

    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 10;

    padding: 6px 10px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 20px;

    background: rgba(15,23,42,0.68);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    backdrop-filter: blur(8px);

}

/* =========================================================

   DOTS

========================================================= */

.post-slider-dots {

    position: absolute;

    left: 50%;

    bottom: 12px;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 22px;

    background: rgba(15,23,42,0.42);

    backdrop-filter: blur(6px);

    transform: translateX(-50%);

}

.post-slider-dot {

    width: 6px;

    height: 6px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255,255,255,0.5);

    cursor: pointer;

    transition: all 0.18s ease;

}

.post-slider-dot.active {

    width: 9px;

    height: 9px;

    background: #ffffff;

    box-shadow:

        0 0 0 3px

        rgba(255,255,255,0.15);

}

/* =========================================================

   SOCIAL SUMMARY

========================================================= */

.news-social-summary {

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 5px 16px;

    border-bottom: 1px solid #edf1f5;

    background: #ffffff;

}

.news-like-summary {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #6f7f91;

    font-size: 12px;

}

.like-circle {

    width: 21px;

    height: 21px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:

        linear-gradient(

            135deg,

            #f05a6b,

            #d92f47

        );

    color: #ffffff;

    font-size: 9px;

    box-shadow:

        0 2px 6px

        rgba(228,61,84,0.25);

}

.comment-count-btn {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 4px 0;

    border: 0;

    background: transparent;

    color: #6f7f91;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

}

.comment-count-btn:hover {

    color: var(--news-primary);

}

/* =========================================================

   ACTIONS

========================================================= */

.news-card-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 6px;

    padding: 6px 10px;

    border-bottom: 1px solid #edf1f5;

    background: #ffffff;

}

.news-action-btn {

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 7px 12px;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #566679;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.16s ease;

}

.news-action-btn:hover {

    background: var(--news-soft-gray);

    color: var(--news-title);

}

.news-action-btn i {

    font-size: 16px;

}

/* =========================================================

   LIKED

========================================================= */

.like-btn.liked {

    background: #fff1f3;

    color: var(--news-danger);

}

.like-btn.liked i {

    color: var(--news-danger);

}

/* =========================================================

   COMMENTS BOX

========================================================= */

.news-comments {

    display: none;

    padding: 14px 16px 16px;

    background: #fbfcfe;

}

.news-comments.show {

    display: block;

}

/* =========================================================

   COMMENT LIST

========================================================= */

.news-comment-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

    margin-bottom: 12px;

}

.news-comment-item {

    display: flex;

    align-items: flex-start;

    gap: 8px;

}

.news-comment-user {

    flex: 0 0 auto;

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--news-soft-blue);

    color: var(--news-primary);

    font-size: 11px;

}

.news-comment-bubble {

    max-width: calc(100% - 44px);

    padding: 9px 12px;

    border-radius: 12px 12px 12px 4px;

    background: #eef2f6;

    color: #334155;

    font-size: 12px;

    line-height: 1.55;

    overflow-wrap: anywhere;

}

/* =========================================================

   COMMENT FORM

========================================================= */

.news-comment-form {

    display: flex;

    align-items: center;

    gap: 8px;

}

.news-comment-avatar {

    flex: 0 0 auto;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--news-soft-blue);

    color: var(--news-primary);

    font-size: 11px;

}

.news-comment-input-wrap {

    position: relative;

    flex: 1;

}

.news-comment-input {

    width: 100%;

    height: 40px;

    box-sizing: border-box;

    padding: 0 45px 0 14px;

    border: 1px solid #dbe4ec;

    border-radius: 22px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 12px;

    transition: all 0.18s ease;

}

.news-comment-input::placeholder {

    color: #9ba8b7;

}

.news-comment-input:focus {

    border-color: var(--news-primary);

    box-shadow:

        0 0 0 3px

        rgba(11,102,173,0.08);

}

.news-comment-send {

    position: absolute;

    top: 50%;

    right: 5px;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background:

        linear-gradient(

            135deg,

            #0b66ad,

            #09558f

        );

    color: #ffffff;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow:

        0 3px 8px

        rgba(11,102,173,0.20);

    transition: all 0.18s ease;

}

.news-comment-send:hover {

    transform:

        translateY(-50%)

        scale(1.05);

}

/* =========================================================

   EMPTY

========================================================= */

.no-news {

    padding: 70px 20px;

    text-align: center;

    border: 1px solid var(--news-border);

    border-radius: 18px;

    background: #ffffff;

    color: #94a3b8;

    box-shadow:

        0 6px 22px

        rgba(15,47,86,0.05);

}

.no-news i {

    margin-bottom: 12px;

    font-size: 42px;

}

.no-news h3 {

    margin: 0 0 5px;

    color: #475569;

    font-size: 17px;

}

.no-news p {

    margin: 0;

    font-size: 13px;

}

/* =========================================================

   PAGINATION

========================================================= */

.news-pagination {

    margin-top: 26px;

}

/* =========================================================

   TABLET

========================================================= */

@media (max-width: 900px) {

    .news-container {

        max-width: 720px;

    }

    .post-slide img,

    .post-slide video {

        height: 360px;

    }

}

/* =========================================================

   MOBILE

========================================================= */

@media (max-width: 768px) {

    .news-page {

        padding: 16px 8px 50px;

    }

    .news-card {

        border-radius: 14px;

    }

    .news-card-header {

        padding: 14px 14px 7px;

    }

    .news-card-content {

        padding: 7px 14px 13px;

    }

    .post-slide img,

    .post-slide video {

        height: 320px;

    }

    .post-slider-arrow {

        width: 34px;

        height: 34px;

    }

    .post-slider-prev {

        left: 8px;

    }

    .post-slider-next {

        right: 8px;

    }

    .news-social-summary {

        padding-left: 14px;

        padding-right: 14px;

    }

    .news-comments {

        padding-left: 14px;

        padding-right: 14px;

    }

}

/* =========================================================

   SMALL MOBILE

========================================================= */

@media (max-width: 480px) {

    .news-page {

        padding-left: 0;

        padding-right: 0;

    }

    .news-card {

        border-left: 0;

        border-right: 0;

        border-radius: 0;

    }

    .news-card-avatar {

        width: 42px;

        height: 42px;

    }

    .news-card-header-info h2 {

        font-size: 16px;

    }

    .post-slide img,

    .post-slide video {

        height: 270px;

    }

    .post-slider-arrow {

        width: 31px;

        height: 31px;

    }

    .post-slider-counter {

        top: 8px;

        right: 8px;

    }

    .post-slider-dots {

        bottom: 8px;

    }

    .news-card-actions {

        padding: 5px 8px;

    }

    .news-action-btn {

        font-size: 12px;

    }

}

/* =========================================================
   NEWS LOGIN POPUP MODAL (moved from index.blade.php)
   ========================================================= */

.lmtc-news-login-overlay[hidden] {

        display: none !important

    }

    .lmtc-news-login-overlay {

        position: fixed;

        inset: 0;

        z-index: 99999;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 20px;

        background: rgba(14, 29, 50, .55);

        backdrop-filter: blur(5px);

        overflow-y: auto

    }

    .lmtc-news-login-dialog {

        position: relative;

        width: 100%;

        max-width: 475px;

        max-height: calc(100vh - 40px);

        overflow-y: auto;

        padding: 38px 35px 28px;

        background: #fff;

        border-radius: 23px;

        box-shadow: 0 30px 90px rgba(0, 0, 0, .24);

        color: #245177

    }

    .lmtc-news-login-close {

        position: absolute;

        right: 16px;

        top: 16px;

        width: 42px;

        height: 42px;

        border: 0;

        border-radius: 12px;

        background: #eaf5fc;

        color: #1680bf;

        font-size: 29px;

        cursor: pointer

    }

    .lmtc-news-login-symbol {

        width: 72px;

        height: 72px;

        display: flex;

        align-items: center;

        justify-content: center;

        margin: 0 auto 14px;

        border-radius: 20px;

        background: #eaf5fc;

        color: #1680bf;

        font-size: 29px

    }

    .lmtc-news-login-dialog h2 {

        text-align: center;

        font-size: 32px;

        color: #245177;

        margin: 0 0 5px

    }

    .lmtc-news-login-subtitle {

        text-align: center;

        color: #7290a8;

        margin: 0 0 25px;

        font-size: 14px

    }

    .lmtc-news-login-dialog form>label:not(.lmtc-news-login-remember) {

        display: block;

        font-weight: 700;

        margin: 15px 0 8px

    }

    .lmtc-news-login-dialog form>input {

        width: 100%;

        height: 52px;

        border: 1px solid #cbddec;

        border-radius: 13px;

        padding: 0 15px;

        font: inherit;

        box-sizing: border-box

    }

    .lmtc-news-login-dialog form>input:focus {

        outline: 2px solid #b2dbfa

    }

    .lmtc-news-login-remember {

        display: flex;

        gap: 9px;

        align-items: center;

        font-size: 14px;

        margin: 15px 0 20px;

        color: #7290a8

    }

    .lmtc-news-login-submit {

        width: 100%;

        height: 54px;

        border: 0;

        border-radius: 13px;

        background: #167ec4;

        color: #fff;

        font-weight: 700;

        cursor: pointer;

        font-size: 16px

    }

    .lmtc-news-login-divider {

        text-align: center;

        margin: 22px 0;

        color: #93a8ba;

        font-size: 13px

    }

    .lmtc-news-login-google {

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 12px;

        height: 52px;

        border: 1px solid #cbddec;

        border-radius: 13px;

        text-decoration: none;

        color: #245177;

        font-weight: 700

    }

    .lmtc-news-login-register {

        text-align: center;

        font-size: 14px;

        margin: 20px 0 0;

        color: #7290a8

    }

    .lmtc-news-login-register a {

        color: #167ec4;

        font-weight: 700

    }

    .lmtc-news-login-error {

        padding: 10px 13px;

        background: #fff1f2;

        color: #be123c;

        border-radius: 10px;

        font-size: 13px

    }

    @media(max-width:520px) {

        .lmtc-news-login-dialog {

            padding: 28px 20px 24px

        }

        .lmtc-news-login-dialog h2 {

            font-size: 27px

        }

    }

/* News listing */
.news-page .news-container {
    max-width: 1320px;
}

.news-page .news-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.news-page .news-card {
    min-width: 0;
}

.news-title-link {
    color: inherit;
    text-decoration: none;
}

.news-title-link:hover {
    color: #168bdb;
}

.news-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #0b66ad;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.news-detail-link:hover {
    text-decoration: underline;
}

.news-media-link {
    display: block;
    width: 100%;
}

.news-page .post-slide img,
.news-page .post-slide video {
    height: 250px;
}

.news-page .post-slide img {
    object-fit: cover;
}

.news-page .news-no-posts {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .news-page .news-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .news-page .news-feed {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* News index pagination only */
.lnews-page .lnews-page-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.lnews-page .lnews-page-navigation > a,
.lnews-page .lnews-page-navigation > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 38px;
    padding: 7px 14px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #203858;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.lnews-page .lnews-page-navigation > a {
    transition: background .2s, color .2s;
}
.lnews-page .lnews-page-navigation > a:hover {
    background: #203858;
    color: #fff;
}
.lnews-page .lnews-page-navigation > a:focus-visible {
    outline: 2px solid #203858;
    outline-offset: 3px;
}
.lnews-page .lnews-page-navigation > .is-disabled {
    color: #94a3b8;
    background: #f8fafc;
}
.lnews-page .lnews-page-navigation > .lnews-page-status {
    border-color: transparent;
    font-variant-numeric: tabular-nums;
}

.lnews-load-more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 32px 0 48px;
}

.lnews-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 248px;
    min-height: 57px;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    color: #19365f;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.lnews-load-more:hover {
    background: #f5f8fc;
    border-color: #cbd5e1;
}

.lnews-load-more:disabled {
    opacity: .6;
    cursor: wait;
}

.lnews-load-more i {
    font-size: 14px;
}
