/* ===== ১. গ্লোবাল স্টাইল ও ভেরিয়েবল ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #0f3460;
    --accent: #e94560;
    --success: #16c784;
    --light-bg: #f8f9fa;
    --border: #e0e0e0;
    --text: #333;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 15px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff; /* নিউজ পোর্টালের জন্য সাদা ব্যাকগ্রাউন্ড ভালো */
    transition: background 0.3s, color 0.3s;
}

/* ===== ২. হেডার ও নেভিগেশন ===== */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #16c784, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchInput {
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px;
    outline: none;
    background: white;
}

#searchInput.show {
    width: 150px;
    opacity: 1;
    visibility: visible;
    padding: 5px 12px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

/* হামবুর্গ মেনু ও নেভিগেশন */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    width: 250px;
    height: 100vh;
    transform: translateX(-100%);
    transition: 0.4s;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    z-index: 999;
}

.nav.active { transform: translateX(0); display: block; }

.nav ul { list-style: none; padding: 2rem 1.5rem; }
.nav li { margin-bottom: 1.5rem; }
.nav a { color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; }

/* ===== ৩. প্রথম আলো স্টাইল (বক্স ছাড়া আর্টিকেল) ===== */
.main-container {
    max-width: 900px; /* পড়ার সুবিধার জন্য কন্টেইনার একটু ছোট করা হলো */
    margin: 2rem auto;
    padding: 0 1.5rem;
    min-height: 70vh;
}

.article-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid #e0e0e0 !important; /* প্রতিটি খবরের নিচে চিকন লাইন */
    margin-bottom: 25px !important;
    padding-bottom: 20px !important;
    border-radius: 0 !important;
}

.article-badge {
    color: var(--accent) !important;
    background: transparent !important;
    padding: 0;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.article-title {
    color: #222 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

.article-title:hover { color: var(--secondary) !important; }

.article-body {
    color: #444 !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    text-align: left !important;
}

.read-more-btn {
    background: none !important;
    color: #007bff !important;
    padding: 0 !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    border: none !important;
    cursor: pointer;
}

/* ===== ৪. ফুটার (সব কন্টেন্ট মিডিলে) ===== */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-section ul { padding: 0; list-style: none; }
.footer-section ul li { margin: 10px 0; }
.footer-section a { color: #ccc; text-decoration: none; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom p { margin: 0 auto; }

/* ===== ৫. ডার্ক মোড ও রেসপনসিভ ===== */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0 !important; }
.dark-mode .article-title { color: #ffffff !important; }
.dark-mode .article-card { border-bottom: 1px solid #333 !important; }

@media (max-width: 768px) {
    .article-title { font-size: 1.4rem !important; }
    .logo h1 { font-size: 1.2rem; }
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* কন্টাক্ট পেজ মোবাইল ফিক্স */
@media screen and (max-width: 600px) {
    a[href^="mailto"] {
        font-size: 14px !important;
        padding: 10px !important;
        width: 90% !important;
        word-wrap: break-word !important;
        display: inline-block !important;
    }
}

