.bold {
	font-weight: 600;
}
.navbar .container .navbar-brand img.logo {
    height: 48px;
    width: auto;
    max-width: 100%;
}

.page-link {
	color: #3f3f40;
}

.navbar-light .navbar-nav .nav-link.nav-search-link {
	font-size:14px;
	cursor: pointer;
}

.page-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #1E3A8A;
}

.navbar-light .navbar-nav a.nav-link,
.navbar-nav .dropdown-menu {
    font-size: 14px;
}
.navbar-light .navbar-nav .nav-link {
	color: rgba(0,0,0,.9);
}
.filter_news_form a.nav-link.active {
    color: #1E3A8A;
    border-bottom: 1px solid #1E3A8A;
}

.page-item.active .page-link, .btn-primary {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.btn-primary:active, .btn-primary:focus {
    background-color: #fff !important;
    color: #1E3A8A !important;
    border-color: #1E3A8A !important;
    outline: none;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #1E3A8A;
}

.btn-link {
    color: #1E3A8A;
}

.btn-link:hover {
    color: #172554;
    text-decoration: none;
}

.btn-primary:hover, .btn-primary:active {
    background-color: #172554;
    border-color: #172554;
}

#filter_modal .modal-footer {
    justify-content: space-between;
}

.form-control:focus {
    box-shadow: none;
    border-color: #1E3A8A;
}

.pagination {
    justify-content: center;
}

.news-card .news-image-container .card-img-top, .list-group-item .card-img-top {
    width: 100%;
    height: 10vw;
    object-fit: cover;
}

.news-card {
    flex-direction: column;
    border-color: #eaeaea !important;
    box-shadow: 0px 3px 7px 0px rgba(22, 35, 58, 0.3);
    height: 100%;
}

.news-cart a .viewArticle {
    display: block;
}

.news-card .news-image-container {
    flex: 0 0 100%;
    width: 100%;
    display: block;
    order: 0;
    margin-left: 0;
    margin-right: auto;
    position: relative;
}

.news-card .news-info {
    padding: 10px 15px 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-color: #eaeaea;
    background-color: #ffffff;
    position: relative;
}

.news-card .news-info .read-more-button {
    position: absolute;
    bottom: 0px;
    right: 0px;
    color: #fff;
    background: #5c5c5c;
    text-decoration: none;
    font-size: 12px;
    padding: 5px;
	font-weight: 600;
	letter-spacing: .02rem;
}

.news-card .news-info .read-more-button:hover {
    background: rgba(30, 58, 138, 1);
}

.news-card .news-info-label {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fff;
    padding: 0 5px;
}

.news-card .news-info-label a {
    color: #5a5a5a;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.news-card .news-info-label a:hover,
.news-card .news-info-label a:focus,
.news-card .news-info-label a:active {
    outline: none;
    text-decoration: none;
    color: #1E3A8A
}

.news-card .news-info-label .separator {
    color: #5a5a5a;
    font-size: 8px;
}

.news-card .news-info .news-title {
    font-size: 16px !important;
    min-height: 58px;
}

.news-card .news-info .news-title a {
    margin: 0;
    color: #000;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    overflow: hidden;
}

@media(min-width: 767px){
.news-card .news-info .news-title a{
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
}

.news-card .news-info .news-title a:hover {
    color: #1E3A8A;
    text-decoration: none;
}

.news-card .news-info .news-description {
    color: #5a5a5a;
    margin: 10px 0 15px;
    column-count: 1;
    column-gap: 48px;
    font-size: 13px !important;
    line-height: 1.6 !important;
    min-height: 65px;
}

.news-card .news-info .news-publisher, 
.news-card .news-info .news-publisher a {
    color: #5a5a5a;
    font-size: 11px;
    letter-spacing: 0px;
	margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

.news-card .news-info .news-publisher a:hover,
.news-card .news-info .news-publisher a:active {
    color: #1E3A8A !important;
    text-decoration: none;
}


.row.equal {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
}

.row.equal > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

nav.horizontal-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
}

/* CUSTOM CHECKBOXES */

.funkyradio label {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #D1D3D4;
    font-weight: normal;
    font-size: 11px;
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
    display: none;
}

.funkyradio input[type="radio"]:empty ~ label,
.funkyradio input[type="checkbox"]:empty ~ label {
    position: relative;
    line-height: 23px;
    text-indent: 30px;
    min-width: 142px;
    width: 142px;
    margin-top: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline-sources-row .funkyradio input[type="radio"]:empty ~ label,
.timeline-sources-row .funkyradio input[type="checkbox"]:empty ~ label {
    min-width: 110px;
    width: 110px;

}

.funkyradio input[type="radio"]:empty ~ label:before,
.funkyradio input[type="checkbox"]:empty ~ label:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content: '';
    width: 2.5em;
    background: #f2f2f2;
    border-radius: 3px 0 0 3px;
}

.funkyradio-success input[type="radio"]:empty ~ label,
.funkyradio-success input[type="checkbox"]:empty ~ label {
    background: #f2f2f2;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
    color: #888;
}

@media (min-width: 767px) {
	.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before,
	.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
		content: '\2714';
		text-indent: .5em;
		color: #C2C2C2;
	}
}


.funkyradio input[type="radio"]:checked ~ label,
.funkyradio input[type="checkbox"]:checked ~ label {
    color: #777;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
    content: '\2714';
    text-indent: .5em;
    color: #333;
    background-color: #ccc;
}

.funkyradio input[type="radio"]:focus ~ label:before,
.funkyradio input[type="checkbox"]:focus ~ label:before {
    box-shadow: 0 0 0 1px #999;
}

.funkyradio-primary input[type="radio"]:checked ~ label:before,
.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #fff;
    border-right: 1px solid #ccc;
}

.funkyradio-success input[type="radio"]:checked ~ label:before,
.funkyradio-success input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5cb85c;
}

.sidebar-news {
    margin-bottom: 25px;
}

.card-body {
	padding: 1rem;
}

.sidebar-news .list-group-item.list-group-most-popular {
    padding: .75rem 0;
}

.card-title {
	font-size: 1.25rem;
	font-weight: 600;
}

.sidebar-news .list-group-item.list-group-most-popular a {
    color: inherit;
	font-weight: 500;
}

.sidebar-news .list-group-item.list-group-most-popular a:hover, .sidebar-news .list-group-item.list-group-most-popular a:focus {
    color: #1E3A8A !important;
    text-decoration: none;
}

.sidebar-news .list-group-item.list-group-most-popular .title {
    font-size: 14px;
    margin: 0;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    color: #000;
    line-height: 1.2 !important;
    font-weight: 700 !important;

}

.sidebar-news .list-group-item.list-group-most-popular .publisher {
    color: #5a5a5a;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    font-size: 11px;
    letter-spacing: 0px;
    margin: 6px 0px;
}


.nav-pills .nav-link {
    border-radius: 0;
    padding: 5px 10px;
    font-size: 13px;
    color: #000;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #8da2b4;
    background-color: transparent;
    border-bottom: 1px solid #8da2b4;
}

.timeline-sources-row {
    padding: 0 0 5px 0;
    border-top: 1px solid #ccc;
}

.timeline-sources-row:last-child {
    border-bottom: 1px solid #ccc;
}

.timeline-source-title {
    font-size: 14px;
    margin-top: 14px;
}

.text-small {
    font-size: 13px;
}

.no-margin-bottom {
    margin-bottom: 0px;
}

.height-auto {
    height: auto !important;
}

.related-news .related-news-title-card {
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    font-size: 17px;
    border-left: 2px solid #8da2b4;
    padding-left: 5px;
    margin-bottom: 10px;
    font-weight: 400;
}

.related-news-title {
    font-size: 16px;
    margin: 0;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    color: #000;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.related-news-description {
    font-size: 14px;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
}

.related-news-author {
    color: #8da2b4;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    font-size: 11px;
    letter-spacing: 0px;
    margin: 6px 0px;
}

.related-news .list-group a:hover .related-news-title,
.related-news .list-group a:focus .related-news-title {
    color: #1E3A8A !important;
    text-decoration: none;
}

.timeline-submit-button {
    z-index: 2;
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 5px 3px #888;
    -webkit-box-shadow: 0 0 5px 3px #888;
}

@media (max-width: 768px) {
    .timeline-submit-button {
        bottom: 60px;
        width: 40px;
        height: 40px;
        right: 10px;
    }
}


footer {
    background-color: #222;
    border-color: #080808;
    color: #fcfcfc;
    margin-top: 25px;
}

footer .column-title {
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
    font-family: "SignikaRO", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif !important;
    color: #bebebe;
    text-transform: uppercase;
}

footer .footer-info {
    padding: 10px 5px;
}

footer .footer-info > ul > li {
    padding: 5px 0;
}

footer a {
    color: #fcfcfc;
}

footer .copyright-text {
    font-size: 12px;
}

footer a:hover, footer a.active {
    color: #93c5fd !important;
    text-decoration: none;
}

footer a.social-icon {
    border: 1px solid #fff;
    margin-left: 7px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    padding-top: 2px;
}

footer a.social-icon:hover {
    border-color: #93c5fd;
    color: #93c5fd;
}

.footer-page-title {
    color: #9f9f9f;
    padding-bottom: 10px;
    border-bottom: 1px solid #888;
    font-style: italic;
}

p.footer-page-bullet {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
}

p.footer-page-subbullet {
    margin-left: 15px;
}

.topCrawl {
    overflow-x: hidden;
    height: 29.4px;
}

.newsFlash {
    position: relative;
    margin-top: 3px;
}

.newsFlash div.top-news {
    display: inline-block;
    font-size: 16px;
    vertical-align: middle;
    margin-right: 15px;
}

.newsFlash a {
    color: inherit;
}

.newsFlash a::before {
    content: "●";
    margin-right: 5px;
    display: inline-block;
}

.newsFlash a:hover {
    color: #1E3A8A !important;
    text-decoration: none;
}

.captcha {
    margin-top: 12px;
}

.refresh-captcha {
    background: transparent;
    border: none;
    color: #000;
    margin-left: 10px;
}

.refresh-captcha:hover, .refresh-captcha:focus, .refresh-captcha:active {
    background: transparent !important;
    color: #1E3A8A !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-select {
    padding: 0 1.75rem 0 .75rem;
    border: none;
    border-radius: 0;
    color: rgba(0, 0, 0, .5);
}

.custom-select:focus {
    border: none;
    box-shadow: none;
}

.mobile-bottom-bar {
    display: none;
    border-top: 1px solid #ccc;
    bottom: 0;
    left: 0;
    width: 100%;
    position: fixed;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    background: #fff;
    z-index: 2;
}

.mobile-bottom-bar .bottom-bar-col {
    justify-content: center;
    align-items: center;
    display: flex;
    flex: 1;
    border-right: 1px solid #ccc;
    padding: 7px 0;
}

.mobile-bottom-bar .bottom-bar-col:last-child {
    border-right: none;
}

.mobile-bottom-bar .bottom-bar-col a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-bar .mobile-user-timelines a {
	color: inherit;
	text-decoration: none;
}

.mobile-bottom-bar .bottom-bar-col i {
    font-size: 18px;
}

.mobile-bottom-bar .bottom-bar-col span {
    display: block;
    font-size: 13px;
}

.user-menu-card {
    text-align: center;
    border-right: 1px solid #ccc;
}

.user-menu-card-last {
    border-right: none;
}

.user-menu-card a {
    color: inherit;
    text-decoration: none;
}

.user-menu-card a i {
    font-size: 25px;
}

.user-menu-card a span {
    display: block;
    font-size: 18px;
}

.user-menu-card.active a, .bottom-bar-col a.active {
    color: #1E3A8A;
}

.mobile-user-timelines {
    position: absolute;
    bottom: 100%;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
}

.mobile-user-timelines.active {
    display: block;
}

.mobile-timeline-holder {
    padding: 10px 0;
	display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media(max-width: 768px) {
	#navbarSupportedContent .userDropdownMenu {
		margin: 0;
		padding: 0;
		border: none;
	}
	
	#navbarSupportedContent .userDropdownMenu .dropdown-item {
		padding: .25rem .8rem
	}
}

@media (min-width: 768px) {
    .sources-dropdown > .dropdown-menu.show {
        width: 500px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu {
        display: flex;
        width: 50%;
    }
}


@media (min-width: 1050px) and (max-width: 1920px) {
    .container-large {
        max-width: 100%;
    }
}

@media (min-width: 1920px) {
    .container-large {
        max-width: 1920px;
    }
}

@media (max-width: 991px) {
    .pagination {
        justify-content: left;
    }
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 60px;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .nav-search-link, .hide-mobile {
        display: none;
    }

    .news-card .news-image-container .card-img-top, .list-group-item .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 200px;
    }

    .user-menu-row {
        margin-bottom: 0 !important;
    }

    .user-menu-card {
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 20px 0;
    }

}


@media (min-width: 576px) {
    .container-large {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .timeline-sources-row .form-check-inline {
        margin-right: 0;
    }
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0px;
    margin-left: 0px;
}

.hidden {
    display: none;
}

.timeline-source-button {
    background: transparent;
    color: #000;
    border: none;
    margin-top: 10px;
}

.share-button {
    font-size: 20px;
    margin-left: 5px;
}

.share-facebook {
    color: #3b5998;
}

.share-whatsapp {
    color: #25d366;
}

.share-twitter {
    color: #00acee;
}

.share-email {
    color: #737373;
}

.share-facebook:hover {
    color: #324b81;
}

.share-whatsapp:hover {
    color: #1fad53;
}

.share-twitter:hover {
    color: #0092cc;
}

.share-email:hover {
    color: #000;
}

/* Breadcrumbs */

.breadcrumbs {
    display: flex;
    padding: 0 1.5rem
}

.breadcrumbs > div {
    font-size: 14px;
    font-weight: 500;
}

.breadcrumbs > div > a {
    color: #5c5c5c;
}

.breadcrumbs > div > a:hover {
    text-decoration: none;
    color: #1E3A8A;
}

.breadcrumbs > div:last-child > a,
.breadcrumbs > div:last-child > span {
    color: #000;
}
.breadcrumbs > div::after {
    content: ">";
    margin: 0 5px;
    color: #5c5c5c;
}

.breadcrumbs > div:last-child::after {
    content: "";
    margin: 0;
}

@media(max-width: 940px) {
    .breadcrumbs {
        display: none;
    }
}

@media(min-width: 767px) {
	.header-categories-dropdown.show {
		display: flex;
		flex-wrap: wrap;
		width: 300px;
	}

	.header-categories-dropdown.show > li {
		width: 50%;
	}
}

/* ==========================================================================
   Modern header & mobile bottom bar
   ========================================================================== */

.navbar.navbar-light.bg-white {
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    padding: .5rem .85rem;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color .18s ease;
}

.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: #1E3A8A;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .22s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link:focus::after,
.navbar-light .navbar-nav .show > .nav-link::after,
.navbar-light .navbar-nav .nav-link[aria-expanded="true"]::after {
    width: calc(100% - 1.7rem);
}

.navbar-nav .dropdown-menu {
    border: 0;
    border-radius: 14px;
    padding: .5rem;
    margin-top: .35rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05) !important;
    background: #fff;
    animation: nn-dropdown-in .18s ease-out;
}

@keyframes nn-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.navbar-nav .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: .45rem .75rem;
    font-size: 14px;
    color: #1f2937;
    transition: background-color .15s ease, color .15s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background: #eef4ff;
    color: #1E3A8A;
}

.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item:active {
    background: #1E3A8A;
    color: #fff;
}

/* Sources mega-menu — desktop */
@media (min-width: 768px) {
    .sources-dropdown > .dropdown-menu.show {
        width: 640px;
        padding: 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .35rem .75rem;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu {
        width: auto;
        display: block;
        padding: .35rem .25rem;
        border-radius: 10px;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu:hover {
        background: #fafafa;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu > .dropdown-item {
        font-weight: 600;
        font-size: 14px;
        padding: .25rem .5rem;
        color: #111827;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu > .dropdown-menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: .25rem;
        margin: .25rem 0 0;
        padding: 0 .5rem;
        box-shadow: none !important;
        background: transparent;
        border-radius: 0;
        animation: none;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu > .dropdown-menu > li {
        display: inline-flex;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu > .dropdown-menu .dropdown-item {
        font-size: 12px;
        padding: 2px 10px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        line-height: 1.6;
    }

    .sources-dropdown > .dropdown-menu.show > .dropdown-submenu > .dropdown-menu .dropdown-item:hover {
        background: #1E3A8A;
        color: #fff;
    }
}

/* Categories dropdown — a bit more breathing room */
@media (min-width: 767px) {
    .header-categories-dropdown.show {
        width: 360px;
        padding: .75rem;
        gap: 2px 6px;
    }

    .header-categories-dropdown.show > li {
        width: calc(50% - 3px);
    }
}

/* Mobile navbar collapse: soften submenu cascading */
@media (max-width: 767px) {
    .navbar-nav .dropdown-menu {
        box-shadow: none !important;
        padding: .25rem 0 .25rem .5rem;
        border-left: 2px solid #dbeafe;
        border-radius: 0;
        margin: 0 0 .25rem;
        animation: none;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: 0;
    }
}

/* ---------- Mobile bottom bar ---------- */

@media (max-width: 768px) {
    body {
        padding-bottom: 76px;
    }

    .mobile-bottom-bar {
        display: flex;
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 10px;
        padding: 6px;
        border: 1px solid rgba(0, 0, 0, .04);
        border-top: 1px solid rgba(0, 0, 0, .04);
        border-radius: 18px;
        background: rgba(255, 255, 255, .88);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        box-shadow: 0 8px 24px rgba(16, 24, 40, .10), 0 2px 6px rgba(16, 24, 40, .06);
        z-index: 1030;
    }

    .mobile-bottom-bar .bottom-bar-col {
        border-right: none;
        padding: 4px 0;
    }

    .mobile-bottom-bar .bottom-bar-col a {
        width: 100%;
        padding: 6px 0;
        border-radius: 12px;
        color: #6b7280;
        transition: background-color .18s ease, color .18s ease, transform .18s ease;
    }

    .mobile-bottom-bar .bottom-bar-col a:hover {
        color: #1E3A8A;
    }

    .mobile-bottom-bar .bottom-bar-col a.active {
        background: #eef4ff;
        color: #1E3A8A;
    }

    .mobile-bottom-bar .bottom-bar-col a.active i {
        transform: translateY(-1px) scale(1.05);
    }

    .mobile-bottom-bar .bottom-bar-col i {
        font-size: 18px;
        transition: transform .18s ease;
    }

    .mobile-bottom-bar .bottom-bar-col span {
        font-size: 11px;
        margin-top: 2px;
        font-weight: 500;
        letter-spacing: .01em;
    }

    .mobile-user-timelines {
        bottom: calc(100% + 8px);
        left: 0;
        right: 0;
        width: auto;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(16, 24, 40, .12);
        padding: 8px;
        background: #fff;
    }

    .mobile-timeline-holder {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .mobile-timeline-holder:hover {
        background: #fafafa;
    }

    footer {
        padding-bottom: 80px;
    }
}

/* ==========================================================================
   Sidebar — modern popular news widget
   ========================================================================== */

.sidebar-popular {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px 16px 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.sidebar-popular-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-popular-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1E3A8A;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
    flex: 0 0 auto;
}

.sidebar-popular-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111827;
}

.sidebar-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular;
}

.sidebar-popular-item {
    counter-increment: popular;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-popular-item:last-child {
    border-bottom: none;
}

.sidebar-popular-link {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 6px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease;
}

.sidebar-popular-link:hover,
.sidebar-popular-link:focus {
    background: #fafafa;
    text-decoration: none;
    color: inherit;
}

.sidebar-popular-thumb {
    position: relative;
    isolation: isolate;
    margin: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    flex: 0 0 auto;
}

.sidebar-popular-thumb::before {
    content: counter(popular);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(17, 24, 39, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0;
}

.sidebar-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-popular-body {
    min-width: 0;
}

.sidebar-popular-headline {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-popular-link:hover .sidebar-popular-headline {
    color: #1E3A8A;
}

.sidebar-popular-meta {
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-popular-source {
    color: #1E3A8A;
    font-weight: 600;
}

.sidebar-popular-sep {
    color: #d1d5db;
}

/* ==========================================================================
   Modern news card
   ========================================================================== */

.news-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04) !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb !important;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08) !important;
}

.news-card-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.news-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.news-card-media:hover img {
    transform: scale(1.04);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 16px 12px;
    gap: 8px;
}

.news-card-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1;
}

.news-card-meta-top a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s ease;
}

.news-card-meta-top .news-card-source {
    color: #1E3A8A;
}

.news-card-meta-top .news-card-source:hover,
.news-card-meta-top a:hover {
    color: #111827;
}

.news-card-meta-top .news-card-sep {
    color: #d1d5db;
}

.news-card-title {
    margin: 0;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111827;
    min-height: calc(17px * 1.3 * 2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.news-card-title a:hover,
.news-card-title a:focus {
    color: #1E3A8A;
    text-decoration: none;
}

.news-card-desc {
    margin: 0;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(13.5px * 1.55 * 2);
}

.news-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.news-card-time {
    color: #9ca3af;
    font-weight: 500;
    letter-spacing: .01em;
}

.news-card-read {
    color: #1E3A8A;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: transparent;
    transition: background-color .15s ease, color .15s ease;
}

.news-card-read:hover,
.news-card-read:focus {
    background: #eef4ff;
    color: #1E3A8A;
    text-decoration: none;
}

.news-card-read i {
    font-size: 10px;
}

/* Height-auto variant (legacy flag, used on article detail) — disables equal-height */
.news-card.height-auto {
    height: auto;
}

.news-card.height-auto .news-card-title,
.news-card.height-auto .news-card-desc {
    min-height: 0;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

/* Ensure equal height grid cards */
.row.equal > [class*="col-"] {
    display: flex;
}

.row.equal > [class*="col-"] > .news-card {
    width: 100%;
}

@media (max-width: 576px) {
    .news-card-title {
        font-size: 16px !important;
    }
    .news-card-body {
        padding: 12px 14px 10px;
    }
}

/* ==========================================================================
   Article detail — hero layout
   ========================================================================== */

.article-hero {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    margin-bottom: 2rem;
}

.article-hero-media {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f4f6;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-hero-body {
    padding: 28px 30px 24px;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 14px;
}

.article-meta-top a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s ease;
}

.article-meta-top .article-source {
    color: #1E3A8A;
}

.article-meta-top a:hover {
    color: #111827;
}

.article-meta-top .article-sep {
    color: #d1d5db;
}

.article-meta-top time {
    color: #9ca3af;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
}

.article-headline {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #0b1020;
    letter-spacing: -.01em;
}

.article-lead {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.65;
    color: #374151;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.btn-read-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1E3A8A;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-read-source:hover,
.btn-read-source:focus {
    background: #172554;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, .25);
}

.btn-read-source i {
    font-size: 12px;
}

.article-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

.article-share .share-btn:hover {
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.article-share .share-btn.share-facebook:hover { background: #3b5998; }
.article-share .share-btn.share-whatsapp:hover { background: #25d366; }
.article-share .share-btn.share-twitter:hover  { background: #00acee; }
.article-share .share-btn.share-email:hover    { background: #4b5563; }

/* Related news — modern heading */
.related-news {
    margin-top: 2rem;
}

.related-news-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.related-news .related-news-title-card {
    margin: 0;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #111827;
    border-left: 3px solid #1E3A8A;
    padding-left: 10px;
    font-family: inherit !important;
}

@media (max-width: 576px) {
    .article-hero-body {
        padding: 20px 18px 18px;
    }
    .article-headline {
        font-size: 24px;
    }
    .article-lead {
        font-size: 15px;
    }
}

/* ==========================================================================
   Sources mega-menu — full-width desktop + mobile drill-down
   ========================================================================== */

.dropdown-menu-sources {
    padding: 0 !important;
    overflow: hidden;
}

.sources-mega {
    position: relative;
}

.sources-drill-head {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.sources-drill-back {
    border: none;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.sources-drill-back:hover {
    background: #eef4ff;
    color: #1E3A8A;
}

.sources-drill-title {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

/* ------- Desktop: full-width mega-menu ------- */
@media (min-width: 768px) {
    /* Break dropdown out of parent to span navbar width */
    .navbar {
        position: relative;
    }

    .sources-dropdown {
        position: static;
    }

    .sources-dropdown > .dropdown-menu-sources.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 !important;
        border-radius: 0 0 18px 18px;
        max-height: 72vh;
        overflow-y: auto;
        display: block;
        grid-template-columns: none;
        gap: 0;
        transform: none !important;
    }

    .sources-mega {
        padding: 24px 32px 28px;
    }

    .sources-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 28px;
    }

    .source-block-head {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }

    .source-title {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        text-decoration: none;
        padding: 4px 0;
        border-bottom: 2px solid transparent;
        transition: color .15s ease, border-color .15s ease;
    }

    .source-title:hover,
    .source-title:focus {
        color: #1E3A8A;
        border-bottom-color: #1E3A8A;
        text-decoration: none;
    }

    .source-drill-open,
    .source-categories-all {
        display: none; /* desktop hides drill button + "read all" chip */
    }

    .source-categories {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .source-categories > li {
        display: inline-flex;
    }

    .source-categories a {
        font-size: 12px;
        font-weight: 500;
        padding: 3px 10px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        text-decoration: none;
        line-height: 1.6;
        transition: background-color .15s ease, color .15s ease;
    }

    .source-categories a:hover,
    .source-categories a:focus {
        background: #1E3A8A;
        color: #fff;
        text-decoration: none;
    }
}

@media (min-width: 992px) {
    .sources-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .sources-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ------- Mobile: drill-down ------- */
@media (max-width: 767px) {
    .sources-dropdown > .dropdown-menu-sources {
        position: static !important;
        width: 100%;
        max-width: none;
        margin: 0 0 .25rem !important;
        padding: 0 !important;
        border-left: 2px solid #dbeafe;
        border-radius: 0;
        box-shadow: none !important;
    }

    .sources-mega {
        max-height: 60vh;
        overflow-y: auto;
    }

    .sources-grid {
        display: flex;
        flex-direction: column;
    }

    .source-block {
        border-bottom: 1px solid #f3f4f6;
    }

    .source-block:last-child {
        border-bottom: none;
    }

    .source-block-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .source-title {
        flex: 1;
        color: #111827;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
    }

    .source-drill-open {
        border: none;
        background: transparent;
        color: #9ca3af;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color .15s ease, color .15s ease;
    }

    .source-drill-open:hover {
        background: #eef4ff;
        color: #1E3A8A;
    }

    .source-categories {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none; /* hidden by default on mobile */
    }

    .source-categories > li > a {
        display: block;
        padding: 10px 18px;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    }

    .source-categories > li > a:hover {
        background: #fafafa;
        color: #1E3A8A;
        border-left-color: #1E3A8A;
        text-decoration: none;
    }

    .source-read-all {
        font-weight: 700 !important;
        color: #1E3A8A !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .source-read-all i {
        font-size: 13px;
    }

    /* Drilled state */
    .dropdown-menu-sources.is-drilled .sources-drill-head {
        display: flex;
    }

    .dropdown-menu-sources.is-drilled .source-block:not(.is-active) {
        display: none;
    }

    .dropdown-menu-sources.is-drilled .source-block.is-active .source-block-head {
        display: none;
    }

    .dropdown-menu-sources.is-drilled .source-block.is-active .source-categories {
        display: block;
    }

    .dropdown-menu-sources.is-drilled .source-block.is-active {
        border-bottom: none;
    }
}

/* ==========================================================================
   Filter modal — modern
   ========================================================================== */

.filter-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
}

.filter-modal .modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 18px 22px;
    background: #fff;
}

.filter-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -.01em;
}

.filter-modal .close {
    font-size: 26px;
    opacity: .55;
    transition: opacity .15s ease, color .15s ease;
}

.filter-modal .close:hover {
    opacity: 1;
    color: #1E3A8A;
}

.filter-modal .modal-body {
    padding: 20px 22px 10px;
}

.filter-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.filter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.filter-field .form-control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.filter-field .form-control:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}

.filter-field select.form-control {
    padding: 0 28px 0 12px;
}

.filter-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 12px;
    margin: 4px 0 16px;
}

.filter-tabs .nav-link {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.filter-tabs .nav-link:hover {
    color: #111827;
    background: transparent;
    border: none;
}

.filter-tabs .nav-link.active {
    background: #fff !important;
    color: #1E3A8A !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    border-bottom: none !important;
}

.filter-chips-panel {
    padding: 6px 2px 10px;
    max-height: 50vh;
    overflow-y: auto;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    position: relative;
    display: inline-block;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.chip .chip-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.chip:hover .chip-label {
    background: #eef4ff;
    color: #1E3A8A;
    border-color: #bfdbfe;
}

.chip input[type="checkbox"]:checked ~ .chip-label {
    background: #1E3A8A;
    color: #fff;
    border-color: #1E3A8A;
    box-shadow: 0 4px 12px rgba(30, 58, 138, .22);
}

.chip input[type="checkbox"]:focus-visible ~ .chip-label {
    outline: 2px solid #1E3A8A;
    outline-offset: 2px;
}

.filter-modal .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #f3f4f6;
    justify-content: space-between;
    gap: 10px;
}

.filter-modal .btn-reset,
.filter-modal .btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.filter-modal .btn-reset {
    background: transparent;
    color: #6b7280;
    border-color: #e5e7eb;
}

.filter-modal .btn-reset:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #fafafa;
}

.filter-modal .btn-apply {
    background: #1E3A8A;
    color: #fff;
    border-color: #1E3A8A;
}

.filter-modal .btn-apply:hover {
    background: #172554;
    border-color: #172554;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, .25);
}

@media (max-width: 576px) {
    .filter-fields {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        width: 100%;
    }
    .filter-tabs .nav-item {
        flex: 1;
    }
    .filter-tabs .nav-link {
        text-align: center;
    }
}

/* ==========================================================================
   Timeline add/edit form
   ========================================================================== */

.timeline-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    gap: 10px;
}

.btn-ghost,
.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-ghost {
    background: #fff;
    color: #4b5563;
    border-color: #e5e7eb;
}

.btn-ghost:hover {
    background: #fafafa;
    color: #111827;
    border-color: #d1d5db;
    text-decoration: none;
}

.btn-accent {
    background: #1E3A8A;
    color: #fff;
    border-color: #1E3A8A;
}

.btn-accent:hover,
.btn-accent:focus {
    background: #172554;
    border-color: #172554;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, .25);
}

.timeline-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-panel {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    overflow: hidden;
}

.timeline-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

.timeline-panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #111827;
}

.timeline-panel-body {
    padding: 22px;
}

.timeline-search {
    position: relative;
    flex: 1 1 260px;
    max-width: 320px;
}

.timeline-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}

.timeline-search .form-control {
    height: 40px;
    border-radius: 999px;
    padding-left: 36px;
    padding-right: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.timeline-search .form-control:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}

.timeline-sources-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-source-block {
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.timeline-source-block:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

.timeline-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.timeline-source-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.chip-all .chip-label {
    background: #eef4ff;
    color: #1E3A8A;
    border-color: #bfdbfe;
    font-weight: 600;
}

.chip-all .chip-label i {
    margin-right: 4px;
    font-size: 11px;
}

.chip-all input[type="checkbox"]:checked ~ .chip-label {
    background: #1E3A8A;
    color: #fff;
    border-color: #1E3A8A;
}

.btn-timeline-save {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1030;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #1E3A8A;
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(30, 58, 138, .32);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-timeline-save:hover,
.btn-timeline-save:focus {
    background: #172554;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(30, 58, 138, .36);
    outline: none;
}

@media (max-width: 768px) {
    .btn-timeline-save {
        bottom: 80px;
        right: 18px;
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* ==========================================================================
   Profile page
   ========================================================================== */

.profile-hero {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    padding: 26px 28px;
    background: linear-gradient(135deg, #fff 0%, #f5f8ff 100%);
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #1E3A8A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(30, 58, 138, .28);
    flex: 0 0 auto;
}

.profile-hero-body {
    flex: 1 1 260px;
    min-width: 0;
}

.profile-name {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #0b1020;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.profile-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}

.profile-email i {
    color: #9ca3af;
    font-size: 12px;
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.profile-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}

.profile-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.profile-stat-icon-red {
    background: #eef4ff;
    color: #1E3A8A;
}

.profile-stat-icon-blue {
    background: #eef2ff;
    color: #4f46e5;
}

.profile-stat-icon-green {
    background: #ecfdf5;
    color: #059669;
}

.profile-stat-body {
    min-width: 0;
}

.profile-stat-label {
    font-size: 11.5px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 3px;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #0b1020;
    letter-spacing: -.01em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    .profile-hero {
        padding: 20px;
    }
    .profile-name {
        font-size: 20px;
    }
}

/* ---------- Timeline list ---------- */

.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
    flex-wrap: wrap;
}

.timeline-list-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

.timeline-list-main {
    flex: 1 1 300px;
    min-width: 0;
}

.timeline-list-name {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timeline-list-name i {
    color: #1E3A8A;
    font-size: 13px;
}

.timeline-list-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-list-source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.timeline-list-source-name {
    font-weight: 600;
    color: #374151;
    margin-right: 4px;
}

.timeline-list-cats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.timeline-list-cat-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .01em;
}

.timeline-list-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-ghost-danger {
    color: #b91c1c;
    border-color: #fecaca !important;
}

.btn-ghost-danger:hover {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444 !important;
}

.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.timeline-empty-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
    color: #d1d5db;
}

/* ---------- Change password form ---------- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
}

.auth-form .filter-field label {
    /* use same style as filter */
}

.auth-form-actions {
    margin-top: 8px;
}

/* ==========================================================================
   Media blur-behind (hero + news card) — shows full image, blurred fill
   ========================================================================== */

.article-hero-media,
.news-card-media {
    position: relative;
    isolation: isolate;
    background: #f3f4f6;
}

.article-hero-media .media-blur,
.news-card-media .media-blur {
    position: absolute;
    inset: 0;
    background-image: var(--thumb, none);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15) brightness(.88);
    transform: scale(1.15);
    z-index: 0;
    opacity: .95;
    pointer-events: none;
}

.article-hero-media img,
.news-card-media img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    transform: none !important;
}

/* Disable the hover scale that previously cropped news card images */
.news-card-media:hover img {
    transform: none !important;
}

.news-card-media img.lozad {
    /* ensure contain works even before lozad loads (src empty) */
    background: transparent;
}

/* Related news — "Vezi mai multe" link */
.related-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.related-news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #1E3A8A;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.related-news-more:hover,
.related-news-more:focus {
    background: #eef4ff;
    border-color: #bfdbfe;
    color: #1E3A8A;
    text-decoration: none;
    transform: translateX(2px);
}

.related-news-more i {
    font-size: 10px;
    transition: transform .18s ease;
}

.related-news-more:hover i {
    transform: translateX(2px);
}

/* ==========================================================================
   Media blur — as <img> element (lazy-loadable via lozad)
   Overrides prior CSS-background approach so lazy loading works correctly.
   ========================================================================== */

.article-hero-media img.media-blur,
.news-card-media img.media-blur,
.sidebar-popular-thumb img.media-blur {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: blur(28px) saturate(1.15) brightness(.88) !important;
    transform: scale(1.15) !important;
    z-index: 0 !important;
    opacity: .95 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Foreground image above the blur layer */
.article-hero-media > img:not(.media-blur),
.news-card-media > img:not(.media-blur),
.sidebar-popular-thumb > img:not(.media-blur) {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
    transform: none !important;
}

/* ==========================================================================
   Pagination — mobile overflow fix + modern styling
   ========================================================================== */

.pagination {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 16px 0;
    padding: 0;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background: #eef4ff;
    color: #1E3A8A;
    border-color: #bfdbfe;
    z-index: auto;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background: #1E3A8A !important;
    border-color: #1E3A8A !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, .22);
}

.pagination .page-item.disabled .page-link {
    background: #fafafa;
    color: #9ca3af;
    border-color: #f3f4f6;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .pagination {
        gap: 3px;
    }
    .pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* ==========================================================================
   Source / Category / Archive hero — magazine-style header
   ========================================================================== */

.source-hero {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 24px 26px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04);
    position: relative;
}

.source-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1E3A8A 0%, #3b82f6 100%);
    border-radius: 14px 0 0 14px;
}

.source-hero-logo {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06);
}

.source-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.source-hero-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.source-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.source-hero-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.source-hero-website {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    margin-top: 6px;
    white-space: nowrap;
}

.source-hero-website:hover,
.source-hero-website:focus {
    background: #1E3A8A;
    border-color: #1E3A8A;
    color: #ffffff;
    text-decoration: none;
}

.source-hero-website i {
    font-size: 10px;
}

.source-hero-intro {
    margin: 2px 0 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.source-hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* Same shape as the menu category tags
   (.sources-dropdown .dropdown-menu .dropdown-item) for visual consistency. */
.source-hero-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.source-hero-category:hover,
.source-hero-category:focus {
    background: #1E3A8A;
    color: #ffffff;
    text-decoration: none;
}

.source-hero--no-logo .source-hero-body {
    width: 100%;
}

@media (max-width: 768px) {
    .source-hero { padding: 18px 18px 18px 22px; gap: 16px; border-radius: 12px; margin-bottom: 22px; }
    .source-hero-logo { flex-basis: 72px; width: 72px; height: 72px; padding: 8px; border-radius: 12px; }
    .source-hero-title { font-size: 22px; }
    .source-hero-intro { font-size: 14px; }
    .source-hero-website { font-size: 12px; padding: 5px 10px; margin-top: 2px; }
}

@media (max-width: 480px) {
    .source-hero { flex-direction: column; align-items: flex-start; padding: 16px; }
    .source-hero-logo { flex-basis: auto; width: 64px; height: 64px; }
    .source-hero-title { font-size: 20px; }
}

/* ==========================================================================
   "Despre sursă" card on /articol/{slug}
   ========================================================================== */

.article-about-source {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 18px 20px;
    margin: 24px 0 20px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16,24,40,.04);
    position: relative;
}

.article-about-source::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: #1E3A8A;
    border-radius: 12px 0 0 12px;
}

.article-about-source-logo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px;
}

.article-about-source-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.article-about-source-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-about-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.article-about-source-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.article-about-source-name a {
    color: #1E3A8A;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-size: 18px;
}

.article-about-source-name a:hover {
    text-decoration: underline;
}

.article-about-source-website {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.article-about-source-website:hover,
.article-about-source-website:focus {
    background: #1E3A8A;
    color: #ffffff;
    text-decoration: none;
}

.article-about-source-website i { font-size: 9px; }

.article-about-source-desc {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    max-width: 70ch;
}

.article-about-source-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1E3A8A;
    text-decoration: none;
    transition: transform .15s ease;
}

.article-about-source-more:hover,
.article-about-source-more:focus {
    color: #1E3A8A;
    text-decoration: underline;
}

.article-about-source-more i { font-size: 10px; transition: transform .15s ease; }
.article-about-source-more:hover i { transform: translateX(3px); }

@media (max-width: 576px) {
    .article-about-source { flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; }
    .article-about-source-logo { flex-basis: 64px; width: 64px; height: 64px; }
}
