/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* ======== GENERAL STYLES ======== */ 
body {
    font-family: "Poppins", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    font-display: swap; /* For faster font loading */
}

/* ======== POLYLANG LANGUAGE SPECIFIC STYLES ======== */
:lang(en) body {
    direction: ltr;
}
:lang(ar) body {
    direction: rtl;
    text-align: right;
}

/* ======== LATEST POSTS AND GRID STYLES ======== */
.latest-posts-wrapper, .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

/* ======== POST ITEM STYLING ======== */
.post-item {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s forwards;
    padding: 20px;
}

.post-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ======== THUMBNAIL IMAGE ======== */
.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 3px solid #2ecc71;
}

/* ======== POST CONTENT ======== */
.post-content {
    padding: 15px;
    text-align: center;
}

.post-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #0073e6;
    transition: color 0.3s ease-in-out;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #ff5722;
}

/* ======== POST META (Author & Time) ======== */
.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.post-meta .author {
    font-weight: bold;
    color: #333;
}

.post-meta .time {
    color: #888;
}

/* ======== POST EXCERPT ======== */
.post-excerpt {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
    display: none;
    transition: all 0.3s ease-in-out;
}

.post-excerpt.show {
    display: block;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1024px) {
    .latest-posts-wrapper, .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* ট্যাবলেটে ২টি পোস্ট */
    }
}

@media (max-width: 768px) {
    .latest-posts-wrapper, .posts-grid {
        grid-template-columns: 1fr; /* মোবাইলে ১টি পোস্ট */
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.1em;
    }

    .post-excerpt {
        font-size: 0.95em;
    }
}

/* ======== FADE-IN ANIMATION ======== */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}






.comment-form #url {
    display: none;
}



/* Link Styling */
.single article a {
    color: #6e09ef;
    border-bottom: 1px dashed #40e0d0;
}

a.read-more.button {
    background-color: #fff;
    font-size: 19px;
    padding: 4px 15px;
    text-align: center;
    transition: 0.5s;
    color: #000;
    box-shadow: rgba(0, 0, 0, 0.1) 0 7px 28px;
    border-radius: 1px;
    border: 2px solid #000;
    font-weight: bold;
}



/* related-posts */
.related-title-item a {
    display: block;
    background: #fff;
    padding: 12px 16px;
    border-left: 4px solid #2ecc71;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.related-title-item a:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    border-left-color: #1abc9c;
    transform: scale(1.03);
}

          









/* Language switcher design */
.menu-item-language a {
  background-color: #3498db;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  margin-right: 6px;
  text-transform: capitalize;
  transition: all 0.3s ease;
}
.menu-item-language a:hover {
  background-color: #2c3e50;
}





/* General Styles for Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.06), inset -2px -2px 8px rgba(255, 255, 255, 0.4);
  transition: 0.3s;
}

.author-box:hover {
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.08), inset -2px -2px 10px rgba(255, 255, 255, 0.6);
}

.author-avatar {
  margin-right: 20px;
}

.author-avatar-img {
  border-radius: 50%;
  border: 2px solid #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #2c3e50;
}

.author-name a {
  text-decoration: none;
  color: inherit;
}

.author-bio {
  font-size: 15px;
  color: #555;
  margin: 0 0 15px;
  line-height: 1.6;
}

.author-link {
  font-size: 15px;
  text-decoration: none;
  color: #2ecc71;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-in-out;
}

.author-link:hover {
  border-color: #2ecc71;
  color: #27ae60;
}



















/* Meta info block spacing */
.qa-meta,
.news-meta,
.tools-meta {
    margin-top: 15px; /* টাইটেলের নিচে সামান্য নিচে সরিয়ে আনে */
}

/* মোবাইলে ফ্লেক্স আইটেম গুলো সুন্দরভাবে ভাঙে */
.qa-meta,
.news-meta,
.tools-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

/* মোবাইল স্ক্রীনে লেখাগুলো এক কলামে দেখাতে চাইলে */
@media (max-width: 480px) {
    .qa-meta,
    .news-meta,
    .tools-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}









/* Container for centering the dropdown */
.search-filter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
}

/* Style for the select dropdown */
.sf-input-select {
    border: 2px solid #0984e3; /* Light blue border */
    border-radius: 6px;
    padding: 10px 14px;
    background-color: #f0faff;
    font-weight: 600;
    color: #2d3436;
    box-shadow: 0 0 0 transparent; /* No shadow for simplicity */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effect for the dropdown */
.sf-input-select:hover {
    background-color: #eaf6ff;
    border-color: #007acc; /* Slightly darker blue on hover */
}











body.archive .generate-columns-container .inside-article,
body.blog .generate-columns-container .inside-article,
body.search .generate-columns-container .inside-article {
    border: 2px solid #a29bfe; /* Lavender color */
    border-radius: 10px;
    padding: 16px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

body.archive .generate-columns-container .inside-article:hover,
body.blog .generate-columns-container .inside-article:hover,
body.search .generate-columns-container .inside-article:hover {
    box-shadow: 0 8px 20px rgba(162, 155, 254, 0.35); /* Lavender shadow */
    transform: translateY(-4px);
}




























/* Container Styles */
.author-modern-container {
    max-width: 1300px;
    margin: auto;
    padding: 30px 15px;
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
    background: #f9f9f9;
}

/* Header */
.author-header {
    text-align: center;
    margin-bottom: 40px;
}

.author-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #27ae60;
}

.author-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 10px auto 0;
}

/* Tabs */
.modern-tab-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.tab-item {
    padding: 10px 25px;
    background: #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-item.active,
.tab-item:hover {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Posts Grid */
.modern-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Post Card */
.modern-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.modern-post-card:hover {
    transform: translateY(-8px);
}

.modern-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.modern-content {
    padding: 15px 20px;
}

.modern-content h2 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    color: #2c3e50;
}

.modern-content h2 a {
    text-decoration: none;
    color: inherit;
}

.modern-date {
    font-size: 0.85rem;
    color: #888;
}

/* No Posts */
.modern-no-post {
    text-align: center;
    font-size: 1.1rem;
    color: #999;
    padding: 50px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tab-item {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .author-header h1 {
        font-size: 2rem;
    }

    .modern-content h2 {
        font-size: 1.1rem;
    }
}























.page-header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #2ecc71;
    margin-bottom: 30px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}




.page-header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #2ecc71;
    margin-bottom: 30px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'Noto Sans Bengali', sans-serif; /* সুন্দর বাংলা ফন্ট */
}




.page-header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #2ecc71;
    margin-bottom: 30px;
}
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: 'Noto Sans Devanagari', sans-serif; /* सुंदर देवनागरी फ़ॉन्ट */
}































































/* টেবিল কন্টেইনার */
.wp-block-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: white;
}

/* সব টেবিলের বেসিক স্টাইল */
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 16px;
  background: white;
  table-layout: auto;
}

/* টেবিল হেডার স্টাইল - হোয়াইটস্পেস নাওরাপ */
.wp-block-table th,
.wp-block-table thead td {
  background-color: #2ecc71;
  color: white;
  font-weight: 600;
  padding: 14px 16px;
  border: 1px solid #27ae60;
  text-align: center;
  white-space: nowrap; /* হেডার টেক্সট ভাঙবে না */
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* টেবিল বডি সেল স্টাইল */
.wp-block-table td {
  padding: 12px 15px;
  border: 1px solid #e1e1e1;
  text-align: center;
  white-space: nowrap; /* টেবিল ডাটা ভাঙবে না */
  overflow: hidden;
  text-overflow: ellipsis;
}

.wp-block-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.wp-block-table tbody tr:hover {
  background-color: #f0f7f0;
}

/* ৩ বা তার কম কলামের টেবিল - সব ডিভাইসে নরমাল */
.wp-block-table:has(table tr:first-child th:nth-child(3):last-child),
.wp-block-table:has(table tr:first-child td:nth-child(3):last-child),
.wp-block-table:has(table tr:first-child th:nth-child(2):last-child),
.wp-block-table:has(table tr:first-child td:nth-child(2):last-child),
.wp-block-table:has(table tr:first-child th:nth-child(1):last-child),
.wp-block-table:has(table tr:first-child td:nth-child(1):last-child) {
  overflow-x: visible;
}

.wp-block-table:has(table tr:first-child th:nth-child(3):last-child) table,
.wp-block-table:has(table tr:first-child td:nth-child(3):last-child) table,
.wp-block-table:has(table tr:first-child th:nth-child(2):last-child) table,
.wp-block-table:has(table tr:first-child td:nth-child(2):last-child) table,
.wp-block-table:has(table tr:first-child th:nth-child(1):last-child) table,
.wp-block-table:has(table tr:first-child td:nth-child(1):last-child) table {
  width: 100%;
  table-layout: auto;
}

/* ৪ বা তার বেশি কলামের টেবিলের জন্য রেস্পন্সিভ স্টাইল */
@media (max-width: 1024px) {
  .wp-block-table:has(table tr:first-child th:nth-child(4)),
  .wp-block-table:has(table tr:first-child td:nth-child(4)) {
    border: 1px solid #ddd;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) table {
    min-width: 700px;
  }
  
  /* হেডার এখনও নাওরাপ থাকবে */
  .wp-block-table:has(table tr:first-child th:nth-child(4)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) th,
  .wp-block-table:has(table tr:first-child th:nth-child(4)) thead td,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) thead td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    padding: 12px 14px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .wp-block-table:has(table tr:first-child th:nth-child(4)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) table {
    min-width: 600px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) th,
  .wp-block-table:has(table tr:first-child th:nth-child(4)) thead td,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) thead td {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) td {
    font-size: 13px;
    padding: 8px 10px;
  }
}

/* ৫ বা তার বেশি কলামের জন্য */
@media (max-width: 1024px) {
  .wp-block-table:has(table tr:first-child th:nth-child(5)),
  .wp-block-table:has(table tr:first-child td:nth-child(5)) {
    border: 1px solid #ddd;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(5)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(5)) table {
    min-width: 800px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(5)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(5)) th {
    font-size: 14px;
    padding: 10px 8px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(5)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(5)) td {
    font-size: 13px;
    padding: 8px 6px;
  }
}

/* ৬ বা তার বেশি কলামের জন্য */
@media (max-width: 1024px) {
  .wp-block-table:has(table tr:first-child th:nth-child(6)),
  .wp-block-table:has(table tr:first-child td:nth-child(6)) {
    border: 1px solid #ddd;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(6)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(6)) table {
    min-width: 900px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(6)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(6)) th {
    font-size: 13px;
    padding: 8px 6px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(6)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(6)) td {
    font-size: 12px;
    padding: 6px 4px;
  }
}

/* খুব ছোট মোবাইলের জন্য */
@media (max-width: 480px) {
  /* ৪ বা বেশি কলামের টেবিল */
  .wp-block-table:has(table tr:first-child th:nth-child(4)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) table {
    min-width: 500px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) th {
    font-size: 13px;
    padding: 8px 6px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(4)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(4)) td {
    font-size: 12px;
    padding: 6px 4px;
  }
  
  /* ৩ বা কম কলামের টেবিল - মোবাইলেও নরমাল */
  .wp-block-table:has(table tr:first-child th:nth-child(3):last-child) table,
  .wp-block-table:has(table tr:first-child td:nth-child(3):last-child) table,
  .wp-block-table:has(table tr:first-child th:nth-child(2):last-child) table,
  .wp-block-table:has(table tr:first-child td:nth-child(2):last-child) table {
    min-width: unset;
    display: table;
    width: 100%;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(3):last-child) th,
  .wp-block-table:has(table tr:first-child td:nth-child(3):last-child) th,
  .wp-block-table:has(table tr:first-child th:nth-child(2):last-child) th,
  .wp-block-table:has(table tr:first-child td:nth-child(2):last-child) th {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 8px;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(3):last-child) td,
  .wp-block-table:has(table tr:first-child td:nth-child(3):last-child) td,
  .wp-block-table:has(table tr:first-child th:nth-child(2):last-child) td,
  .wp-block-table:has(table tr:first-child td:nth-child(2):last-child) td {
    white-space: normal;
    font-size: 13px;
    padding: 8px 6px;
  }
}

/* ডেস্কটপের জন্য অপ্টিমাইজেশন */
@media (min-width: 1025px) {
  .wp-block-table {
    overflow-x: visible;
  }
  
  .wp-block-table table {
    table-layout: auto;
  }
  
  /* অনেকগুলো কলামের টেবিলের জন্য */
  .wp-block-table:has(table tr:first-child th:nth-child(8)) table,
  .wp-block-table:has(table tr:first-child td:nth-child(8)) table {
    table-layout: fixed;
  }
  
  .wp-block-table:has(table tr:first-child th:nth-child(8)) th,
  .wp-block-table:has(table tr:first-child td:nth-child(8)) th,
  .wp-block-table:has(table tr:first-child th:nth-child(8)) td,
  .wp-block-table:has(table tr:first-child td:nth-child(8)) td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* প্রিন্ট স্টাইল */
@media print {
  .wp-block-table {
    overflow-x: visible !important;
    border: none !important;
  }
  
  .wp-block-table table {
    width: 100% !important;
    min-width: unset !important;
  }
  
  .wp-block-table th {
    background-color: #f0f0f0 !important;
    color: #000 !important;
  }
}