/* ============================================
   Reset & Base
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  color: #2d2d2d;
  background: #f8f9fa;
  transition: background 0.4s, color 0.4s;
}

body.dark {
  background: #0f0f0f;
  color: #e0e0e0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header
============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  transition: all 0.3s;
}

body.dark .header {
  background: rgba(15,15,15,0.95);
  border-bottom: 1px solid #222;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}



/* ==================== LOGO STYLING ==================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text a {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0066cc;           /* সবসময় এই নীল রং */
    text-decoration: none;    /* কোনো আন্ডারলাইন নেই */
    transition: color 0.3s ease;
    cursor: pointer;          /* হোভারে পয়েন্টার */
}

.logo-text a:hover {
    color: #0066cc;           /* হোভারেও রং একই থাকবে */
    text-decoration: none;    /* আন্ডারলাইন না আসে */
}

/* Dark Mode Support */
body.dark .logo-text a,
[data-theme="dark"] .logo-text a {
    color: #4da6ff;           /* ডার্ক মোডে একটু হালকা নীল */
}

.logo-text a:active {
    color: #0052a3;           /* ক্লিক করার সময় একটু গাঢ় নীল */
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text a {
        font-size: 1.45rem;
    }
}




/* Desktop Navbar */
/* Desktop */
.navbar ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;           /* এটা গুরুত্বপূর্ণ */
    white-space: nowrap;         /* টেক্সট এক লাইনে রাখবে */
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1.06rem;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar ul {
        gap: 14px;                    /* গ্যাপ আরও কমানো */
        flex-wrap: nowrap;
    }
    
    .navbar a {
        font-size: 0.90rem;           /* ফন্ট আরও ছোট */
        padding: 4px 0;
    }
}

/* খুব ছোট মোবাইলের জন্য (যেমন: 360px-480px) */
@media (max-width: 480px) {
    .navbar ul {
        gap: 10px;
    }
    
    .navbar a {
        font-size: 0.86rem;           /* আরও ছোট */
    }
}






body.dark .navbar a {
  color: #ccc;
}

.navbar a:hover,
.navbar a.active {
  color: #0066cc;
}

body.dark .navbar a:hover,
body.dark .navbar a.active {
  color: #4da6ff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #555;
}

body.dark #theme-toggle {
  color: #bbb;
}

.search-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #555;
}

body.dark .search-btn {
  color: #bbb;
}

/* ============================================
   Hero / Featured
============================================ */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
}

body.dark .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1f 100%);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.featured-img {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

body.dark .featured-img {
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.featured-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-img:hover img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 102, 204, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-content h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

body.dark .featured-content h1 {
  color: #f0f0f0;
}

.excerpt {
  font-size: 1.18rem;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.8;
}

body.dark .excerpt {
  color: #bbb;
}

.meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #777;
}

body.dark .meta {
  color: #aaa;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0066cc;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.read-more:hover {
  background: #0055b3;
  transform: translateY(-2px);
}

/* ============================================
   Main Content - Grid + Sidebar
============================================ */
.main-content {
  padding: 60px 0 100px;
}

.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #0066cc;
  border-radius: 2px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

body.dark .post-card {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.post-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-img img {
  transform: scale(1.08);
}

.category-badge.small {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.8rem;
  padding: 6px 12px;
}

.post-content {
  padding: 24px;
}

.post-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 16px;
}

body.dark .post-meta {
  color: #aaa;
}

/* Sidebar Widgets */
.widget {
  background: white;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

body.dark .widget {
  background: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.widget-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0066cc;
  display: inline-block;
}

.popular-list li {
  margin-bottom: 16px;
}

.popular-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

body.dark .popular-list a {
  color: #ddd;
}

.popular-list a:hover {
  color: #0066cc;
}

.category-list li {
  margin-bottom: 12px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #444;
}

body.dark .category-list a {
  color: #ccc;
}

.category-list span {
  background: #0066cc22;
  color: #0066cc;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.newsletter-widget {
  text-align: center;
}

.subscribe-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

body.dark .subscribe-form input {
  background: #222;
  border-color: #444;
  color: white;
}

.subscribe-form button {
  padding: 14px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: #0055b3;
}

/* Footer */
.footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer h3 {
  color: white;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer a {
  color: #bbb;
  text-decoration: none;
  line-height: 2;
  transition: color 0.2s;
}

.footer a:hover {
  color: #4da6ff;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #222;
  font-size: 0.95rem;
  color: #888;
}

/* Load More Button */
.load-more {
  text-align: center;
  margin-top: 60px;
}

.load-more-btn {
  padding: 16px 48px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.load-more-btn:hover {
  background: #0055b3;
  transform: translateY(-3px);
}

/* Dark Mode Toggle Animation */
#theme-toggle i {
  transition: transform 0.4s;
}

body.dark #theme-toggle i {
  transform: rotate(360deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .featured-post {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .featured-img img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .navbar {
    order: 3;
    width: 100%;
    margin-top: 12px;
  }
  .navbar ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero {
    padding: 60px 0 80px;
  }
  .featured-img img {
    height: 300px;
  }
  .featured-content h1 {
    font-size: 2.1rem;
  }
}




/* =========================================
   WHAT & WHY DAMAL BANGLA
========================================= */

.about-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(248,250,252,0.95) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 45px 50px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.06);
    transition: all 0.35s ease;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(15,23,42,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.09);
}

/* Badge */

.about-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Title */

.about-section .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #0f172a;
    margin-bottom: 28px;
    line-height: 1.2;
    position: relative;
}

.about-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 90px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(to right, #0f172a, #334155);
}

/* Content */

.about-content {
    position: relative;
    z-index: 2;
}

.about-content p {
    font-size: 1.08rem;
    line-height: 2;
    color: #334155;
    margin-bottom: 22px;
}

.about-content strong {
    color: #0f172a;
}

/* Highlight Box */

.about-highlight {
    margin-top: 38px;
    padding: 24px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #0f172a;
    border-radius: 18px;
    font-size: 1.02rem;
    line-height: 1.9;
    color: #334155;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}

/* Responsive */

@media (max-width: 992px) {

    .about-section {
        padding: 38px 32px;
    }

}

@media (max-width: 768px) {

    .about-section {
        padding: 30px 24px;
        border-radius: 22px;
        margin-bottom: 45px;
    }

    .about-section .section-title {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.9;
    }

    .about-highlight {
        padding: 20px;
        border-radius: 14px;
    }

}

/* =========================================
   AUTHOR SECTION
========================================= */

.author-section {
    position: relative;
    background:
        linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 48px 50px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
    transition: all 0.35s ease;
}

.author-section::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,23,42,0.05) 0%, transparent 70%);
}

.author-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.08);
}

/* Header */

.author-header {
    margin-bottom: 35px;
}

.author-badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.author-section .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #0f172a;
    margin: 0;
    position: relative;
    display: inline-block;
}

.author-section .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 85px;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(to right, #0f172a, #334155);
}

/* Layout */

.author-content .author-info {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    position: relative;
    z-index: 2;
}

/* Avatar */

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    border: 5px solid #ffffff;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.35s ease;
}

.author-avatar img:hover {
    transform: scale(1.03);
}

/* Details */

.author-details {
    flex: 1;
}

.author-details h3 {
    font-size: 2rem;
    color: #0f172a;
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.2;
}

.author-role {
    display: inline-block;
    margin-bottom: 22px;
    color: #475569;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 50px;
}

.author-details p {
    font-size: 1.06rem;
    line-height: 1.95;
    color: #334155;
    margin-bottom: 20px;
}

/* Quote */

.author-quote {
    margin-top: 30px;
    padding: 24px 28px;
    border-radius: 20px;
    background: #f8fafc;
    border-left: 5px solid #0f172a;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.author-quote i {
    font-size: 1.3rem;
    color: #0f172a;
    margin-top: 4px;
}

.author-quote span {
    color: #334155;
    line-height: 1.85;
    font-style: italic;
    font-size: 1rem;
}

/* Responsive */

@media (max-width: 992px) {

    .author-section {
        padding: 40px 35px;
    }

    .author-content .author-info {
        gap: 28px;
    }

}

@media (max-width: 768px) {

    .author-section {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .author-content .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar img {
        width: 150px;
        height: 150px;
        border-radius: 22px;
    }

    .author-details h3 {
        font-size: 1.7rem;
    }

    .author-details p {
        font-size: 1rem;
        line-height: 1.85;
    }

    .author-quote {
        text-align: left;
    }

}




/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 35px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.dark .modal-content {
    background: #1e2937;
    color: #f1f5f9;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.modal-close:hover {
    color: #ef4444;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #1e2937;
    transition: all 0.3s;
}

body.dark .contact-item {
    background: #334155;
    color: #f1f5f9;
}

.contact-item:hover {
    background: #e0f2fe;
    transform: translateX(8px);
}

body.dark .contact-item:hover {
    background: #475569;
}







/* =========================
   TERMS & CONDITIONS
========================= */

#conditions-section {
    background: #ffffff;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    color: #0f172a;
    line-height: 1.2;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Terms Box */

.terms-content {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 45px;
    line-height: 1.9;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.terms-content h3 {
    font-size: 1.7rem;
    margin-bottom: 22px;
    color: #0f172a;
}

.terms-content p {
    color: #334155;
    margin-bottom: 18px;
}

.terms-content ol {
    padding-left: 25px;
    margin: 30px 0;
}

.terms-content li {
    margin-bottom: 20px;
    color: #1e293b;
}

.terms-content li strong {
    color: #0f172a;
}

.terms-note {
    margin-top: 40px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #f8fafc;
    border-left: 5px solid #0f172a;
    color: #334155;
    line-height: 1.8;
}

.last-updated {
    margin-top: 35px;
    font-style: italic;
    color: #64748b;
    text-align: right;
    font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 768px) {

    .terms-content {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .section-title {
        font-size: 2rem;
    }

    .terms-content h3 {
        font-size: 1.4rem;
    }

}