
@font-face {
  font-family: "Kalpurush";
  src: url("../assets/fonts/kalpurush.ttf") format("truetype");
}



@font-face {
  font-family: "LiPurnoPran";
  src: url("../assets/fonts/LiPurnoPran.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}



* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Kalpurush', 'Noto Serif Bengali', serif;
    text-decoration: none;
}


.mid-text {
    text-align: center;
}


/* =========================
   Short Stories Root Page
   File: /css/short-story-root.css
========================= */

.short-hero,
.short-info,
.genre-section,
.popular-stories,
.all-stories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}


/* =========================
   Hero
========================= */

.short-hero {
    text-align: center;
    padding-top: 32px;
    padding-bottom: 20px;
}

.short-hero h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.3;
}

.short-hero p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}


/* =========================
   Information
========================= */

.short-info h2,
.genre-section h2,
.popular-stories h2 {
    margin-bottom: 16px;
    text-align: center;
}

.short-info p {
    line-height: 1.8;
    margin-bottom: 16px;
}


/* =========================
   Statistics Grid
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.stat-card span {
    display: block;
    font-size: 0.95rem;
}


/* =========================
   Genre Cards
========================= */

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.genre-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: 0.2s;
}

.genre-card:hover {
    transform: translateY(-2px);
}

.genre-card h3 {
    margin: 0 0 8px;
    text-align: center;
}

.genre-card p {
    margin: 0;
    line-height: 1.6;
    text-align: center;
}


/* =========================
   Story Grid
========================= */

.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.story-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.story-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 12px;
}

.story-content h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.story-content h3 a {
    text-decoration: none;
    color: inherit;
}

.story-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* ================================
   All Story List
================================ */

.all-stories h2 {
    margin-bottom: 24px;
    font-size: 21px;
    background: #ffffff;
    padding: 14px 20px;
    border-left: 6px solid #076300;
    border-radius: 8px;
}

.story-list {
    margin: 0;
    padding-left: 60px;
    column-count: 3;
    column-gap: 40px;
}

.story-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    break-inside: avoid;
}

.story-list li::marker {
    font-size: 20px;
}

.story-list a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
}

/* ----- footer placement ------ */


#footer {
    margin-top: 30px;
}


/* =========================
   Tablet
========================= */

@media (max-width: 992px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-list {
    column-count: 2;
    }

    .all-stories h2 {
        font-size: 18px;
    }

    .story-list a {
        font-size: 19px;
    }

}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    .short-hero h1 {
        font-size: 1.7rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .genre-card,
    .stat-card {
        padding: 16px;
    }

    .all-stories h2 {
    font-size: 16px;
}

.story-list {
    column-count: 1;
}

.story-list a {
    font-size: 16px;
}

}



/* =========================
   Genre Colors
========================= */

.genre-card:nth-child(1){
    background:#ffe5e5;
}

.genre-card:nth-child(1):hover{
    background:#d62828;
    color:#fff;
}

.genre-card:nth-child(2){
    background:#fff0d6;
}

.genre-card:nth-child(2):hover{
    background:#10008a;
    color:#fff;
}

.genre-card:nth-child(3){
    background:#e3f2fd;
}

.genre-card:nth-child(3):hover{
    background:#1976d2;
    color:#fff;
}

.genre-card:nth-child(4){
    background:#e8f5e9;
}

.genre-card:nth-child(4):hover{
    background:#2e7d32;
    color:#fff;
}

.genre-card:nth-child(5){
    background:#f3e5f5;
}

.genre-card:nth-child(5):hover{
    background:#7b1fa2;
    color:#fff;
}

.genre-card:nth-child(6){
    background:#eceff1;
}

.genre-card:nth-child(6):hover{
    background:#37474f;
    color:#fff;
}


:root {
  --bg: #e6fffb;
  --card-bg: #fdefff;
  --text: #000000;
  --text-light: #000000;
  --accent: #040404;
  --border: #e8e2d9;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.root-info {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.root-info article {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Headings */
.root-info h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.root-info h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Paragraphs & Text */
.root-info p {
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: justify;
}

.root-info p:last-child {
  margin-bottom: 0;
}

/* Category Overview - Responsive Grid */
.category-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.category-item {
  background: #eaf5ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #d4d0c3;
}

.category-item p {
  font-size: clamp(0.98rem, 1vw, 1.05rem);
  line-height: 1.7;
}

/* FAQ Section */
.faq-section .faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.faq-section .faq-item:last-child {
  margin-bottom: 0;
}

.faq-section .faq-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  border-color: #d4d0c3;
}

/* "Which story for you" section */
.root-info p strong {
  color: var(--accent);
  font-weight: 600;
}

/* Final Message Section */
.final-message article {
  background: linear-gradient(135deg, #f8f5ed 0%, #fdfaf3 100%);
  text-align: center;
  border: 1px solid #e8e4d9;
}

.final-message p {
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Why Read Section - Bullet Points */
.root-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.root-info ul li {
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  padding: 0.65rem 0 0.65rem 1.75rem;
  position: relative;
  color: var(--text-light);
  line-height: 1.7;
}

.root-info ul li::before {
  content: "●";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .root-info article {
    padding: 1.5rem;
  }
  
  .category-overview {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .category-item,
  .faq-section .faq-item {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .root-info {
    padding: 0 0.75rem;
  }
  
  .root-info article {
    padding: 1.25rem;
    border-radius: 8px;
  }
  
  .root-info h2 {
    font-size: 1.45rem;
  }
  
  .root-info p,
  .root-info ul li {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .category-item p {
    font-size: 0.98rem;
  }
}