@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@font-face {
    font-family: 'SolaimanLipiNormal';
    src: url('../fonts/solaimanlipi/solaiman-lipi.eot');
    src: url('../fonts/solaimanlipi/solaiman-lipi.eot') format('embedded-opentype'),
    url('../fonts/solaimanlipi/solaiman-lipi.woff') format('woff'),
    url('../fonts/solaimanlipi/solaiman-lipi.ttf') format('truetype'),
    url('../fonts/solaimanlipi/solaiman-lipi.svg#SolaimanLipiNormal') format('svg');

    font-weight:normal;font-style:normal;
}

body {
    font-family: 'SolaimanLipiNormal', sans-serif;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.one-line-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ad Banner */
.ad-banner {
    background: #f5f5f5;
    text-align: center;
    padding: 10px;
}

/* Navbar */
.custom-navbar {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Logo */
.logo {
    font-weight: bold;
    font-size: 24px;
}

/* Desktop Menu */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #DC3545 !important;
    /*font-weight: 600;*/
    border-bottom: 2px solid #DC3545;
}

.nav-link.active {
    color: #DC3545 !important;
    font-weight: 600;
    border-bottom: 2px solid #DC3545;
}

/* Mobile Menu Scroll */
.mobile-menu {
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 5px 0;
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu a {
    display: inline-block;
    padding: 8px 14px;
    margin: 5px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    background: #f1f1f1;
    transition: 0.3s;
}

.mobile-menu a:hover {
    background: #212529;
    color: #fff;
}

/* Active style (optional) */
.mobile-menu a.active {
    background: #212529;
    color: #fff;
}

.card img {
    object-fit: cover;
}

.card h6 {
    font-weight: 600;
}

h5 {
    font-weight: bold;
}

.trending-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.trending-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.card-img-top {
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.breaking-wrapper {
    overflow: hidden;
    width: 100%;
}

.scroll-track {
    display: flex;
    width: max-content;
    animation: scroll-left 35s linear infinite;
    will-change: transform;
}

.scroll-text {
    display: flex;
    white-space: nowrap;
}

.scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.breaking-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: 0.3s;
}

.breaking-link:hover {
    color: #ffc107;
}

.scroll-text:hover {
    animation-play-state: paused;
}

/* Dropdown base */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;

    border-radius: 8px;
    padding: 10px 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-width: 180px;
}

.dropdown-menu {
    right: 0;
    left: auto;
}

/* Show on hover */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Smooth animation */

.nav-item.dropdown > .nav-link {
    position: relative;
}

.nav-item.dropdown > .nav-link::after {
    transition: 0.3s;
}

.nav-item.dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

/* Dropdown items */
.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #212529;
    color: #f1f1f1;
}

/* Arrow fix */
.dropdown-toggle::after {
    margin-left: 5px;
}

.news-card {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.news-card img {
    transition: 0.3s;
}

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

.img-box {
    width: 90px;
    height: 65px;
    overflow: hidden;
    border-radius: 5px;
    flex-shrink: 0;
}

.img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.trending-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-item div:last-child {
    flex: 1;
    min-width: 0; /* 🔥 THIS IS KEY */
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-box img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box span {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tag {
    background: #212529;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.news-time {
    font-size: 12px;
    color: #888;
}

.deep-btn {
    display: block;
    width: 100%;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 6px;
    margin-top: 10px;
    transition: 0.3s;
    color: #333;
    background: #f8f9fa;
}

.deep-btn:hover {
    background: #212529;
    color: #fff;
    border-color: #212529;
}

.deep-btn i {
    margin-left: 5px;
}

.sidebar-ad {
    text-align: center;
}

.sidebar-ad img {
    margin: 0 auto;
}

.footer {
    background: #212529;
    color: #ccc;
    padding: 50px 0 20px;
}

.footer h6 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
}

.footer .newsletter input {
    border-radius: 4px;
    border: none;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.footer .newsletter button {
    width: 100%;
    background: #DC3545;
    border: none;
    padding: 10px;
    color: #fff;
    border-radius: 4px;
    transition: 0.3s;
}

.footer .newsletter button:hover {
    /*background: #0056b3;*/
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid #212529;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: #aaa;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

.author-box a:hover span {
    color: #DC3545;
}

.category-tag:hover {
    opacity: 0.85;
}

.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/*.card-content {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*}*/

.author-box a,
.meta-info a {
    position: relative;
    z-index: 3;
}

.ad-img {
    width: 100%;
    max-width: 728px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .ad-banner {
        padding: 5px;
    }
    .img-box {
        width: 70px;
        height: 50px;
    }

    .trending-item p {
        font-size: 13px;
    }

    .trending-item {
        gap: 8px;
    }

    .news-card:hover img {
        transform: none;
    }

    /*.info-row {*/
    /*    flex-direction: column;*/
    /*    align-items: flex-start;*/
    /*    gap: 5px;*/
    /*}*/
}

/* Mobile layout */
@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }

    .mobile-logo {
        text-align: center;
        width: 100%;
    }

    .mobile-logo img {
        display: inline-block;
    }

    .scroll-track {
        animation-duration: 45s; /* slow for mobile */
    }
}

/* Desktop layout */
@media (min-width: 768px) {
    .mobile-menu-wrapper {
        display: none;
    }
}
