/* --- Global Variables --- */
:root {
  --primary: #4f46e5;       /* Modern Indigo */
  --primary-dark: #4338ca;
  --accent: #f59e0b;        /* Amber for badges */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-soft: #f3f4f6;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'SolaimanLipi', 'Segoe UI', sans-serif; /* বাংলা ফন্ট */
  color: var(--text-dark);
  background: #f9fafb;
  line-height: 1.6;
  padding: 0;
}

.single-ebook-main {
  padding: 20px 0;
}

.container {
  max-width: 1000px; /* Reading focused width */
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.section-heading {
  font-size: 24px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
  margin: 40px 0 25px;
  color: var(--text-dark);
}

/* --- 1. Hero Section --- */
.book-hero-section {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 300px 1fr; /* Image fixed, Content flexible */
    gap: 50px;
  }
}

/* 3D Cover Effect */
.book-cover-3d {
  position: relative;
  width: 220px;
  margin: 0 auto;
  perspective: 1000px;
}
.book-cover-3d img {
  width: 100%;
  border-radius: 5px;
  box-shadow: -12px 10px 20px rgba(0,0,0,0.3);
  transform: rotateY(-15deg);
  transition: transform 0.4s;
}
.book-cover-3d:hover img {
  transform: rotateY(0deg) scale(1.05);
}

.badge-download {
  position: absolute;
  bottom: 20px;
  right: -20px;
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Hero Content */
.hero-info-col {
  text-align: left;
}

@media (max-width: 767px) {
  .hero-info-col {
    text-align: center;
  }
  .meta-line {
    justify-content: center;
  }
  .desktop-actions {
    justify-content: center;
  }
}

.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.breadcrumb a { color: var(--primary); }
.entry-title {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #111;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
}
.meta-item a { color: var(--primary); font-weight: 600; border-bottom: 1px dotted var(--primary); }

.hero-excerpt {
  background: #f0fdf4; /* Light green bg */
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
  font-size: 15px;
  margin-bottom: 25px;
}

/* Desktop Actions */
.desktop-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn-hero-download {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
}
.btn-hero-download:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fbbf24; }
.btn-hero-buy {
  background: white;
  color: var(--text-dark);
  border: 1px solid #d1d5db;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-hero-buy:hover { border-color: var(--accent); color: var(--accent); }

/* --- 2. Meta Table (SEO Friendly) --- */
.book-meta-table-section {
  background: var(--bg-soft);
  padding: 20px 0;
}
.meta-table-wrapper {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.book-info-table {
  width: 100%;
  border-collapse: collapse;
}
.book-info-table th, .book-info-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.book-info-table th {
  background: #f8fafc;
  color: var(--text-light);
  width: 35%;
  font-weight: 600;
}
.book-info-table td { font-weight: 500; }

/* --- 3. Content Body --- */
.book-description-section { background: white; padding: 10px 0; }
.content-body p { margin-bottom: 15px; font-size: 17px; color: #374151; }
.content-h2 { font-size: 22px; margin-top: 30px; margin-bottom: 15px; color: #111; }
.content-h3 { font-size: 19px; margin-top: 20px; margin-bottom: 10px; color: #333; }
.quote-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 18px;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: green;
  font-weight: bold;
}

/* --- 4. Final Download Box --- */
.final-download-section { padding: 40px 0; text-align: center; }
.download-box {
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid #c7d2fe;
}
.btn-big-download {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 50px;
  margin-top: 20px;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
  animation: pulse 2s infinite;
}
.btn-big-download:hover { color: #fbbf24; }
@media (max-width: 767px) {
  .btn-big-download {
    font-size: 16px;
    padding: 12px 30px;
  }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.dmca-notice { font-size: 12px; color: #888; margin-top: 15px; }

/* --- 5. Related Books Grid (From Previous) --- */
.featured-books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 1024px) {
  .featured-books-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* --- 6. FAQ Section --- */
.faq-section { margin-bottom: 80px; } /* Footer space */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px;
}
.faq-item summary {
  padding: 15px; cursor: pointer; font-weight: 600; list-style: none; position: relative;
}
.faq-item summary::after { content: '+'; position: absolute; right: 15px; font-weight: bold; }
.faq-item[open] summary::after { content: '-'; }
.faq-body { padding: 15px; border-top: 1px solid #eee; font-size: 15px; color: #555; }

/* --- 7. Mobile Sticky Footer (Conversion Machine) --- */
.mobile-sticky-footer {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: white;
  padding: 12px 15px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid #eee;
}
@media (min-width: 768px) {
  .mobile-sticky-footer { display: none; } /* ডেস্কটপে দেখাবে না */
}
.sticky-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sticky-title {
  font-weight: bold;
  font-size: 14px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-size { font-size: 11px; color: #666; margin-top: 2px; }
.btn-sticky-download {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  margin-left: 10px;
}
