/* =========================================
   ১. ফন্ট লোড এবং গ্লোবাল সেটআপ
   ========================================= */
@font-face {
    font-family: 'SolaimanLipi';
    /* ফন্ট ফাইলটি assets/fonts ফোল্ডারে থাকতে হবে */
    src: url('../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* সব এলিমেন্টে ফন্ট অ্যাপ্লাই করা */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, textarea, select, label {
    font-family: 'SolaimanLipi', sans-serif !important;
}

body {
    background-color: #f8f9fa; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    color: #333;
    overflow-x: hidden; /* হরিজন্টাল স্ক্রল বন্ধ */
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* =========================================
   ২. নেভিগেশন বার (Navbar)
   ========================================= */
.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
    color: #ffc107 !important; /* গোল্ডেন কালার */
}

.nav-link {
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-link.active {
    color: #ffc107 !important;
}

/* অফক্যানভাস (মোবাইল মেনু) স্টাইল */
.offcanvas-header .btn-close {
    background-color: white; /* ক্লোজ বাটন সাদা করা */
    opacity: 1;
}

/* =========================================
   ৩. কার্ড ডিজাইন (হোমপেজ ও ক্যাটাগরি)
   ========================================= */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* হোভার করলে কার্ড একটু উপরে উঠবে */
.news-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* কার্ডের ইমেজের ফিক্সড সাইজ */
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: #2c3e50;
    line-height: 1.5;
    display: block;
    margin-bottom: 10px;
}

.news-title:hover {
    color: #d63384; /* পিংক কালার */
}

/* ক্যাটাগরি ব্যাজ (কার্ডের উপরে) */
.cat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 10;
}

/* =========================================
   ৪. নিউজ ডিটেইলস পেজ স্টাইল
   ========================================= */

/* খবরের শিরোনাম */
.news-header {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* তারিখ ও মেটা ডাটা */
.news-meta {
    font-size: 1rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- মূল খবরের কন্টেন্ট (টেক্সট এলাইনমেন্ট ফিক্স) --- */
.news-content {
    font-size: 1.125rem; /* ডেস্কটপে ১৮ পিক্সেল */
    line-height: 1.8;
    color: #2d2d2d;
    
    /* ডেস্কটপে খবরের কাগজের মতো দুই পাশ সমান থাকবে */
    text-align: justify;
    text-justify: inter-word;
}

.news-content p {
    margin-bottom: 20px;
}

/* ক্যাটাগরি বাটন */
.category-btn {
    background-color: #d63384;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}
.category-btn:hover {
    background-color: #a82363;
    color: white;
}

/* --- সাইডবার (সর্বশেষ ও সম্পর্কিত খবর) --- */
.sidebar-card {
    background: #fff;
    padding: 5px;
    border-radius: 5px;
}
.sidebar-card img {
    height: 70px;
    width: 100px;
    object-fit: cover;
    border-radius: 5px;
}
.sidebar-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    display: block;
}
.sidebar-title:hover {
    color: #d63384;
}
.sidebar-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}
.section-heading {
    border-bottom: 2px solid #ddd;
    border-left: 5px solid #d63384; /* বামে একটু কালার বার */
    padding-left: 10px;
    padding-bottom: 8px;
    margin-bottom: 18px;
    font-weight: bold;
    font-size: 1.3rem;
    color: #444;
}

/* =========================================
   ৫. যোগাযোগ পেজ (Contact Page)
   ========================================= */
.contact-header {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.contact-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #d63384;
}
.form-label {
    font-weight: bold;
    color: #555;
}

/* =========================================
   ৬. ফুটার ডিজাইন
   ========================================= */
footer {
    background-color: #212529;
    color: #bbb;
}

footer h5 {
    font-size: 1.3rem;
    color: #fff;
    border-bottom: 2px solid #d63384;
    display: inline-block;
    padding-bottom: 5px;
}

footer p, footer a {
    font-size: 1rem;
}

footer a:hover {
    color: #ffc107 !important;
    padding-left: 5px;
}

/* =========================================
   ৭. রেসপন্সিভ (মোবাইল ও ট্যাবলেট ফিক্স)
   ========================================= */
@media (max-width: 768px) {
    /* -- টাইটেল ছোট করা -- */
    h1, .news-header, .contact-header {
        font-size: 1.6rem; 
        line-height: 1.3;
    }
    
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    
    .news-title { font-size: 1.1rem; }
    .container { padding-left: 15px; padding-right: 15px; }

    /* -- কার্ড ইমেজ সাইজ কমানো -- */
    .card-img-top { height: 180px; }

    /* -- নিউজ ডিটেইলস টেক্সট ফিক্স (গুরুত্বপূর্ণ) -- */
    .news-content {
        /* মোবাইলে বাম দিক থেকে শুরু হবে (Justify বন্ধ) */
        text-align: left !important;
        text-justify: auto;
        
        /* ফন্ট সাইজ ১৬ পিক্সেল (পড়ার জন্য আদর্শ) */
        font-size: 1rem; 
        line-height: 1.6;
    }

    /* নিউজের ভেতরের ছবি রেসপন্সিভ */
    .news-content img {
        width: 100% !important;
        height: auto !important;
        margin: 15px 0;
        border-radius: 5px;
    }
    
    /* সাইডবার কার্ড মোবাইল ভিউ */
    .sidebar-card img {
        height: 60px;
        width: 80px;
    }
}