/* =============================================
   PREMIUM BLOG CSS - Bengali Literary Style
   ============================================= */

@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;
}

/* ========== ROOT VARIABLES (Premium Palette) ========== */
:root {
    --bg-primary: #f8f5f0;
    --bg-content: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    
    /* Premium Accent Colors */
    --accent-teal: #0f766e;
    --accent-warm: #92400e;
    --accent-gold: #b45309;
    --accent-purple: #581c87;
    
    /* Surfaces & Borders */
    --surface: #ffffff;
    --surface-alt: #f8f5f0;
    --border-color: #e5e0d5;
    --border-light: #f0e9dc;
    
    /* Shadows (Premium Soft) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.09);
    
    /* Radius (Premium Rounded) */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    
    /* Typography */
    --font-primary: 'Kalpurush', 'Noto Serif Bengali', serif;
    --font-secondary: 'LiPurnoPran', 'Kalpurush', sans-serif;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-content: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --surface: #1e293b;
        --surface-alt: #334155;
        --border-color: #475569;
        --border-light: #475569;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
}

body {
    font-size: 17px;
}

/* ========== HERO SECTION ========== */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(30px, 4vw, 60px) clamp(20px, 3vw, 40px);
    background: var(--bg-primary);
}

.heroInner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

.heroText {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.heroTitle {
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
}

.heroExcerpt {
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 620px;
}

.heroMeta {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--text-secondary);
    opacity: 0.9;
    margin-top: 8px;
}

.heroImage img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: block;
}

/* ========== MAIN LAYOUT ========== */
.mainLayout {
    max-width:1400px;
    margin:0 auto;
    padding:0 clamp(15px,2vw,30px);

    display:grid;
    grid-template-columns:minmax(0,1fr) 260px;
    gap:24px;

    align-items:start;
}

/* ========== LEFT ZONE (Other Blogs) ========== */


.otherBlogsTitle {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align:center;
}

.otherBlogs {
    display:grid;
    grid-template-columns:1fr;
    gap:14px;

    margin-bottom:40px;
}

.blogCard {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.blogCard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.blogThumb {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--surface-alt);
}

.blogThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blogCard:hover .blogThumb img {
    transform: scale(1.05);
}

.blogTitle {
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    min-height: 72px;
    display: flex;
    align-items: flex-start;
}

/* ========== CONTENT ZONE (Main Article) ========== */
.contentZone {
    background: var(--bg-content);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 3vw, 42px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.blogContent {
    max-width:100%;
}

.blogContent p {
    font-family: var(--font-secondary);
    font-size: clamp(17.5px, 1.15vw, 20px);
    line-height: 1.85;
    margin-bottom: 22px;
    color: var(--text-primary);
    text-align: justify;
}

.blogContent h2,
.blogContent h3 {
    font-weight: 700;
    margin: 42px 0 18px;
    color: var(--text-primary);
}

.blogContent h2 { font-size: clamp(26px, 2.3vw, 34px); }
.blogContent h3 { font-size: clamp(22px, 2vw, 28px); }

/* Content Images */
.contentImage {
    margin: 40px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contentImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ratio32 { aspect-ratio: 3/2; max-width: 680px; }
.ratio23 { aspect-ratio: 2/3; max-width: 420px; }
.ratio31 { aspect-ratio: 3/1; max-width: 100%; }
.ratio11 { aspect-ratio: 1/1; max-width: 520px; }

/* ========== RIGHT ZONE (Mini Stories) ========== */
.rightZone {
    padding-top:10px;
}

.miniStoriesTitle {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);

    text-align:center;
}

.miniStoryList {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.miniStoryList a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.miniStoryList a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.95;
}

/* Mini Story Colors (Premium) */
.miniColor1 { background: #1e40af; }
.miniColor2 { background: #92400e; }
.miniColor3 { background: #166534; }
.miniColor4 { background: #6b21a8; }
.miniColor5 { background: #9f1239; }
.miniColor6 { background: #0f766e; }
.miniColor7 { background: #854d0e; }
.miniColor8 { background: #334155; }

/* ========== BOTTOM SLIDER ========== */
.bottomLayout {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0 clamp(15px, 2vw, 30px);
}

.sliderTitle {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.sliderWrapper {
    position: relative;
    padding: 0 50px;
}

.horizontalSlider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.horizontalSlider::-webkit-scrollbar {
    display: none;
}

.sliderCard {
    flex: 0 0 240px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.sliderCard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-teal);
}

.sliderThumb {
    width: calc(100% - 16px);
    margin: 8px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-alt);
}

.sliderThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sliderText {
    padding: 16px 18px;
    text-align: center;
}

.sliderName {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.sliderDesc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sliderArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sliderArrow:hover {
    background: var(--accent-teal);
    color: white;
}

.leftArrow { left: 0; }
.rightArrow { right: 0; }

/* ========== RESPONSIVE ========== */


/* Tablet */
@media (min-width: 701px) and (max-width: 900px) {
    .mainLayout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .leftZone, .rightZone {
        max-width: 620px;
        margin: 0 auto;
    }
    
    .otherBlogs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contentZone {
        padding: 32px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .heroInner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .heroImage {
        order: -1;
    }
    
.mainLayout {
    grid-template-columns:1fr;
    gap:28px;
}

.rightZone{
    position:static;
}
    
    .otherBlogs {
            grid-template-columns:repeat(2,1fr);
    }
    
    .contentZone {
        padding: 24px 20px;
    }
    
    .blogContent {
        max-width: 100%;
    }
    
    .sliderWrapper {
        padding: 0 12px;
    }
    
    .sliderCard {
        flex: 0 0 220px;
    }
    
    .miniStoryList {
        justify-content: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .heroTitle {
        font-size: 30px;
    }
    
    .blogContent p {
        font-size: 17px;
    }
    
    .sliderCard {
        flex: 0 0 200px;
    }
}