/*
 Theme Name:   GeneratePress Child
 Description:  My Custom Child Theme for Sanjib Sinha's Thriller Universe
 Template:     generatepress
 Version:      1.0.0
*/

/* --- 1. Intro Section (Centered) --- */
.intro-container {
    text-align: center;
    max-width: 1000px;
    margin: 60px auto 40px; /* Centers the block horizontally */
    padding: 0 20px;
}

.main-title {
    font-family: 'Tiro Bangla', serif;
    font-size: 48px;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: bold;
    display: block;
}

.universe-bio-card {
    background: #ffffff;
    padding: 35px;
    border-bottom: 4px solid #d32f2f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
    margin: 0 auto; /* Centers the card */
    max-width: 900px;
}

.universe-bio-card p {
    font-family: 'Tiro Bangla', serif;
    font-size: 21px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.cta-text {
    font-weight: bold;
    color: #1a1a1a;
    margin-top: 20px;
}

/* --- এই অংশটি সবথেকে গুরুত্বপূর্ণ: হোমপেজের মেইন কন্টেইনারকে চওড়া করা --- */
/* GeneratePress-এর ডিফল্ট লিমিট ভাঙার জন্য */
body.home .grid-container {
    max-width: 1600px !important; /* জোর করে ১৬০০ পিক্সেল করা হলো */
}

/* --- ২. ডায়নামিক বুকশেলফ গ্রিড (৬ কলাম ফিক্স) --- */
.bookshelf-grid-system {
    display: grid;
    /* ১৪০ পিক্সেল করে দিলে ৬টি কলাম অনায়াসে ধরবে */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto 80px; 
}

.book-card-item {
    text-decoration: none;
    text-align: center;
    display: block;
    transition: transform 0.4s ease;
    width: 100%;
    /* কার্ডের সাইজ আরেকটু ছোট করা হলো ৬টি ধরানোর জন্য */
    max-width: 200px; 
    margin: 0 auto;
}

.book-card-item:hover {
    transform: translateY(-8px);
}

.book-image-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3; 
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
}

.book-name-label {
    font-family: 'Tiro Bangla', serif;
    font-size: 16px; /* ৬ কলামের জন্য ফন্ট সাইজ সামান্য কমানো হলো */
    color: #222;
    margin-top: 12px;
    line-height: 1.3;
    font-weight: 600;
}

/* --- এক্সট্রা: বড় স্ক্রিনে জোর করে ৬ কলাম দেখানো --- */
@media (min-width: 1400px) {
    .bookshelf-grid-system {
        /* যদি অটো-ফিট কাজ না করে, তবে এটি জোর করে ৬টি কলাম তৈরি করবে */
        grid-template-columns: repeat(6, 1fr); 
    }
}

/* --- 3. Responsive Adjustments --- */
/* Note: We removed the column-count media queries because 'auto-fit' handles it automatically now! */

@media (max-width: 600px) {
    .main-title {
        font-size: 32px;
    }
    .universe-bio-card {
        padding: 20px;
    }
    /* On mobile, we reduce gap to save space */
    .bookshelf-grid-system {
        gap: 20px;
    }
}
/* --- ফুটার ডিসক্লেইমার স্টাইল --- */
.footer-disclaimer {
    font-size: 13px;       /* ফন্ট ছোট করা হলো */
    color: #a0a0a0;        /* একটু হালকা ধূসর রং, যাতে চোখে না লাগে */
    font-style: italic;    /* ইটালিক স্টাইল */
    text-align: center;    /* মাঝখানে রাখা */
    margin-top: 15px;      
    line-height: 1.5;
    padding: 0 10px;
}

/* --- ৩. সিঙ্গেল পোস্ট / রিডিং মোড ডিজাইন --- */

/* ১. পোস্টের কন্টেইনার সরু এবং মাঝখানে আনা (বইয়ের পাতার মতো) */
.single .site-content {
    max-width: 800px; /* পড়ার জন্য আদর্শ প্রস্থ */
    margin: 0 auto;
    float: none; /* সাইডবার থাকলে সেটাকে ডিজেবল করে মাঝখানে আনবে */
}

/* ২. টাইপোগ্রাফি এবং পড়ার আরাম */
.single .entry-content p {
    font-family: 'Tiro Bangla', serif; /* আপনার পছন্দের বাংলা ফন্ট */
    font-size: 21px; /* পড়ার জন্য আরামদায়ক বড় ফন্ট */
    line-height: 1.8; /* লাইনের মাঝখানে যথেষ্ট ফাঁক */
    color: #2c2c2c; /* কুচকুচে কালোর বদলে ডার্ক গ্রে (চোখের জন্য ভালো) */
    margin-bottom: 28px; /* প্যারাগ্রাফের মাঝখানে স্পেস */
    text-align: justify; /* দুই দিকে সমান রাখা (অপশনাল, ভালো না লাগলে বাদ দিতে পারেন) */
}

/* ৩. পোস্টের টাইটেল */
.single .entry-title {
    font-family: 'Tiro Bangla', serif;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: #d32f2f; /* আপনার থিমের লাল রঙ */
    margin-bottom: 20px;
    margin-top: 20px;
}

/* ৪. মেটা ডেটা (তারিখ, লেখক) একটু হালকা করে দেওয়া */
.single .entry-meta {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* ৫. ফিচারড ইমেজ (কভার ফটো) */
.single .featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ৬. মোবাইল ডিভাইসের জন্য অ্যাডজাস্টমেন্ট */
@media (max-width: 768px) {
    .single .site-content {
        padding: 0 20px; /* মোবাইলে দুই পাশে একটু প্যাডিং */
    }
    .single .entry-content p {
        font-size: 19px; /* মোবাইলে ফন্ট একটু ছোট */
        text-align: left; /* মোবাইলে জাস্টিফাই দেখতে খারাপ লাগে, তাই লেফট */
    }
}

/* --- ৪. ক্যাটাগরি আর্কাইভ পেজ ডিজাইন (২ কলাম গ্রিড) --- */

/* ১. মেইন কন্টেইনারকে গ্রিড বানানো */
.archive #main, .category #main {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ২ কলাম */
    gap: 30px; /* মাঝখানের গ্যাপ */
}

/* ২. প্রতিটি পোস্টকে কার্ডের মতো সাজানো */
.archive article, .category article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive article:hover, .category article:hover {
    transform: translateY(-5px); /* হোভার করলে একটু ভেসে উঠবে */
}

/* ৩. ইমেজের সাইজ ছোট এবং ফিক্সড করা */
.archive .post-image img, .category .post-image img {
    width: 100%;
    height: 200px; /* হাইট ফিক্সড করে দেওয়া হলো */
    object-fit: cover; /* ইমেজ যাতে চ্যাপ্টা না হয় */
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- ৪ ও ৫. ক্যাটাগরি আর্কাইভ পেজ (৩ কলাম গ্রিড ও হেডার ফিক্স) --- */

/* ১. মেইন কন্টেইনারকে ৩ কলামের গ্রিড বানানো */
.archive #main, .category #main {
    display: grid;
    /* এখানে ৩টি সমান কলাম তৈরি করা হলো */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* মাঝখানের গ্যাপ */
}

/* ২. ক্যাটাগরি টাইটেলকে পুরো লাইন জুড়ে রাখা (Title Fix) */
.archive .page-header, .category .page-header {
    grid-column: 1 / -1; /* শুরু থেকে শেষ পর্যন্ত জায়গা নেবে */
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0; /* টাইটেলের নিচে একটা হালকা দাগ */
    padding-bottom: 20px;
}
.archive .page-header h1, .category .page-header h1 {
    font-family: 'Tiro Bangla', serif;
    font-size: 38px;
    color: #d32f2f;
}

/* পেজ নম্বর (Pagination) - নিচে পুরো লাইন জুড়ে থাকবে */
.archive .paging-navigation, .category .paging-navigation {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
}

/* ৩. প্রতিটি পোস্ট কার্ড ডিজাইন */
.archive article, .category article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive article:hover, .category article:hover {
    transform: translateY(-5px);
}

/* ৪. ইমেজের সাইজ */
.archive .post-image img, .category .post-image img {
    width: 100%;
    /* ৩ কলামে ইমেজ একটু ছোট হবে, তাই হাইট ১৮০ পিক্সেল করা হলো */
    height: 180px; 
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ৫. টাইটেল এবং টেক্সট */
.archive .entry-title, .category .entry-title {
    font-size: 20px; /* ফন্ট সাইজ একটু কমানো হলো যাতে ৩ কলামে ভেঙে না যায় */
    font-family: 'Tiro Bangla', serif;
    margin-bottom: 10px;
    line-height: 1.4;
}

.archive .entry-summary, .category .entry-summary {
    font-size: 15px;
    color: #555;
    flex-grow: 1;
}

/* ৬. Read More বাটন */
.read-more, .read-more:visited {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    margin-top: 15px;
    text-decoration: none;
    align-self: flex-start;
}

/* ৭. রেসপনসিভ ডিজাইন (মোবাইল ও ট্যাবলেট) */
@media (max-width: 1024px) {
    .archive #main, .category #main {
        grid-template-columns: repeat(2, 1fr); /* ট্যাবলেটে ২ কলাম */
    }
}

@media (max-width: 600px) {
    .archive #main, .category #main {
        grid-template-columns: 1fr; /* মোবাইলে ১ কলাম */
    }
}

/* ৬. Read More বাটন ডিজাইন */
.read-more, .read-more:visited {
    display: inline-block;
    background: #d32f2f; /* লাল বাটন */
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    margin-top: 15px;
    text-decoration: none;
    align-self: flex-start;
}

/* ৭. মোবাইল রেসপনসিভ (মোবাইলে ১ কলাম) */
@media (max-width: 768px) {
    .archive #main, .category #main {
        grid-template-columns: 1fr; /* মোবাইলে ১ কলাম */
    }
}

/* --- ৫. ক্যাটাগরি পেজের হেডার এবং ফুটার ফিক্স --- */

/* ক্যাটাগরি টাইটেলকে পুরো লাইন জুড়ে রাখা (যাতে বক্সে না ঢুকে যায়) */
.archive .page-header, .category .page-header {
    grid-column: 1 / -1; /* এটি ১ নম্বর কলাম থেকে শেষ পর্যন্ত জায়গা নেবে */
    text-align: center; /* টাইটেল মাঝখানে থাকবে */
    margin-bottom: 40px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* ক্যাটাগরি টাইটেলের ফন্ট ডিজাইন (অপশনাল) */
.archive .page-header h1, .category .page-header h1 {
    font-family: 'Tiro Bangla', serif;
    font-size: 36px;
    color: #d32f2f;
}

/* পেজ নম্বর (Pagination) - যদি থাকে, সেটাও যেন নিচে পুরো লাইন জুড়ে থাকে */
.archive .paging-navigation, .category .paging-navigation {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

/* --- Top Announcement Bar Design --- */
.top-announcement-bar {
    background-color: #1a1a1a; /* বা #d32f2f দিলে লাল হবে */
    color: #ffffff;
    text-align: center;
    padding: 12px 10px;
    font-family: 'Tiro Bangla', serif;
    font-size: 16px;
    border-bottom: 3px solid #d32f2f; /* নিচে লাল বর্ডার */
}

.top-announcement-bar p {
    margin: 0;
    line-height: 1.5;
}

.announce-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
    text-transform: uppercase;
    font-weight: bold;
    vertical-align: middle;
}

.buy-now-btn {
    display: inline-block;
    background: #ffffff;
    color: #d32f2f;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.buy-now-btn:hover {
    background: #d32f2f;
    color: #ffffff;
}

/* মোবাইলে যাতে বাটন নিচে না ভেঙে যায় */
@media (max-width: 600px) {
    .top-announcement-bar {
        font-size: 14px;
    }
    .buy-now-btn {
        display: inline-block; /* বা block দিলে নিচে চলে আসবে */
        margin-top: 5px;
    }
}

/* --- Next Chapter Button Design --- */
.next-chapter-container {
    background-color: #f9f9f9; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.next-label {
    font-family: 'Tiro Bangla', serif;
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    display: block;
}

.next-chapter-btn {
    display: inline-block;
    background-color: #d32f2f; /* আপনার থিমের লাল রঙ */
    color: #ffffff !important;
    font-family: 'Tiro Bangla', serif;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px; /* বাটনটি গোলগাল বা পিল শেপের হবে */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3); /* লালের ওপর হালকা শ্যাডো */
}

.next-chapter-btn:hover {
    background-color: #b71c1c; /* হোভার করলে একটু গাঢ় লাল হবে */
    transform: translateY(-3px); /* বাটনটি একটু ভেসে উঠবে */
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

/* মোবাইলে যাতে বাটনটি স্ক্রিনের বাইরে না চলে যায় */
@media (max-width: 600px) {
    .next-chapter-btn {
        width: 100%; /* মোবাইলে পুরো চওড়া হবে */
        padding: 12px 10px;
        font-size: 18px;
    }
}

/* --- ৬. মডার্ন কমেন্ট সেকশন ডিজাইন --- */

/* কমেন্ট এরিয়া কন্টেইনার */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee; /* গল্পের শেষ এবং কমেন্টের শুরুতে একটি দাগ */
}

/* শিরোনাম (Leave a Reply) */
.comments-title, .comment-reply-title {
    font-family: 'Tiro Bangla', serif;
    font-size: 26px;
    color: #1a1a1a;
    font-weight: bold;
    margin-bottom: 25px;
}

/* ইনপুট ফিল্ড (নাম, ইমেইল, মেসেজ বক্স) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Tiro Bangla', serif;
}

/* ইনপুটে ক্লিক করলে বর্ডার লাল হবে */
.comment-form input:focus,
.comment-form textarea:focus {
    background: #fff;
    border-color: #d32f2f;
    outline: none;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.1);
}

/* সাবমিট বাটন (Post Comment) */
.form-submit input[type="submit"] {
    background-color: #1a1a1a; /* প্রথমে কালো */
    color: #ffffff;
    font-family: 'Tiro Bangla', serif;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.form-submit input[type="submit"]:hover {
    background-color: #d32f2f; /* হোভার করলে লাল */
}

/* অন্যের করা কমেন্টের স্টাইল */
.comment-list .comment-body {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
    margin-bottom: 10px;
}

/* লেখকের নাম */
.comment-author cite {
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    color: #222;
    font-family: 'Tiro Bangla', serif;
}

/* কমেন্টের তারিখ */
.comment-metadata a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
}

/* কমেন্ট টেক্সট */
.comment-content p {
    font-size: 17px;
    line-height: 1.6;
    color: #444;
    margin-top: 10px;
}

/* রিপ্লাই বাটন */
.comment-reply-link {
    font-size: 14px;
    color: #d32f2f;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #d32f2f;
    padding: 3px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #d32f2f;
    color: #fff;
}

/* --- Updated Contact Page Design --- */

.contact-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.contact-intro {
    font-family: 'Tiro Bangla', serif;
    font-size: 19px;
    line-height: 1.6;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
}

/* Card Style */
.contact-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #d32f2f;
    display: inline-block;
    padding-bottom: 5px;
}

/* Business Section */
.business-section {
    border-left: 5px solid #d32f2f;
    background: #fffdfd;
}

/* Email Links */
.email-links {
    text-align: center;
}

.primary-email-link {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    text-decoration: none;
    margin: 10px;
    padding: 10px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.primary-email-link:hover {
    background: #d32f2f;
    color: #ffffff;
}

/* --- Contact Form Styling (The New Part) --- */
.thriller-contact-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.thriller-contact-form input[type="text"],
.thriller-contact-form input[type="email"],
.thriller-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 16px;
    font-family: 'Tiro Bangla', serif;
    margin-bottom: 15px;
    transition: 0.3s;
}

/* Focus Effect (Red Border) */
.thriller-contact-form input:focus,
.thriller-contact-form textarea:focus {
    border-color: #d32f2f;
    background: #fff;
    outline: none;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
}

/* Submit Button */
.thriller-contact-form input[type="submit"] {
    background-color: #1a1a1a;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.thriller-contact-form input[type="submit"]:hover {
    background-color: #d32f2f;
}