/* custom.css - Custom styles for Bangla News Portal */

/* Import Bangla Font */
/* @import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap'); */
@font-face {
    font-family: 'SolaimanLipi'; /* Name you choose to use in your CSS */
    src: url('../font/SolaimanLipi.ttf') format('truetype'); /* Path to your font file */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Helps optimize font loading behavior */
}
* {
    font-family: 'Hind Siliguri', sans-serif;
    font-family: "SolaimanLipi", sans-serif !important;
}

body {
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .bg-white {
    background-color: #2d3748 !important;
}

body.dark-mode .bg-gray-50 {
    background-color: #1a202c !important;
}

body.dark-mode .text-gray-800 {
    color: #f7fafc !important;
}

body.dark-mode .text-gray-600 {
    color: #cbd5e0 !important;
}

body.dark-mode .border {
    border-color: #4a5568 !important;
}

body.dark-mode .shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bg-gray-200 {
    background-color: #4a5568 !important;
    color: #e2e8f0;
}

/* Breaking News Ticker Animation */
.ticker-animate {
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-150%);
    }
}

/* Navigation Dropdown */
.nav-link{
    padding:6px 10px;
    border-radius:4px;
    display:inline-block;
}

.nav-link:hover{
    background:#f3f4f6;
}

.dropdown{
    position:relative;
}

.dropdown-content{
    position:absolute;
    left:0;
    top:100%;
    min-width:200px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    border-radius:6px;
    display:none;
    z-index:9999;
}

.dropdown:hover .dropdown-content{
    display:block;
}

.dropdown-content a{
    display:block;
    padding:8px 12px;
    font-size:14px;
    border-bottom:1px solid #eee;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: #dc2626;
}

/* Dark mode dropdown */
body.dark-mode .dropdown-content {
    background-color: #2d3748;
    border: 1px solid #4a5568;
}

body.dark-mode .dropdown-content a {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

body.dark-mode .dropdown-content a:hover {
    background-color: #4a5568;
    color: #f87171;
}

/* Navigation Links */
.nav-link {
    padding: 4px 10px;
    font-weight: 500;
    white-space: nowrap;
    color: #374151;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #dc2626;
}

.nav-link.active {
    color: #dc2626;
    font-weight: 600;
}

/* Dark mode nav */
body.dark-mode .nav-link {
    color: #e2e8f0;
}

body.dark-mode .nav-link:hover {
    background-color: #4a5568;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 250px;
}

.slider-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-prev, .slider-next {
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-dots .dot {
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background-color: #dc2626;
    width: 20px;
    border-radius: 10px;
}

/* Lazy Loading Placeholder */
.lazy {
    background: #f1f5f9;
}


/* News Cards */
.news-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Video Cards */
.video-card {
    cursor: pointer;
}

.video-card .absolute {
    transition: all 0.3s;
}

.video-card:hover .absolute div {
    background-color: #dc2626;
    transform: scale(1.1);
}

/* Gallery Items */
.gallery-item {
    transition: opacity 0.3s;
}

.gallery-item:hover {
    opacity: 0.9;
}

/* Popular News Tabs */
.popular-tab {
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.popular-tab.active {
    border-bottom-color: #dc2626;
    color: #dc2626;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Ad Placeholders */
/* .ad-placeholder {
    background-color: #e5e7eb;
    background-image: repeating-linear-gradient(45deg, #d1d5db 0px, #d1d5db 10px, #e5e7eb 10px, #e5e7eb 20px);
} */

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #9ca3af;
}

/* Pagination */
.pagination-item {
    transition: all 0.2s;
}

.pagination-item:hover {
    background-color: #e5e7eb;
}

.pagination-item.active {
    background-color: #dc2626;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .ticker-animate {
        animation-duration: 20s;
    }
}

/* Print Styles */
@media print {
    nav, .print-hide, .my-header,
    .ad-placeholder, #dark-mode-toggle,
    footer {
        display: none !important;
    }

    .print-add{
        display: block !important;
    }
}