/* =========================================================
   EverydayTools.tech — Premium Blog Hub Styles (BATCH 1)
   Includes: Base, Progress Bar, Breadcrumbs, Premium Hero
========================================================= */

/* =========================================
   Utility Classes
========================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Reading Progress Bar
========================================= */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #f72585);
    width: 0%;
    border-radius: 0 5px 5px 0;
    transition: width 0.1s ease-out;
}

/* =========================================
   Breadcrumb Navigation
========================================= */
.breadcrumb-nav { 
    padding: 20px 5% 0; 
    max-width: 1200px;
    margin: 0 auto;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}
.breadcrumb-list a { 
    color: var(--text-muted); 
    text-decoration: none;
    transition: color 0.2s; 
}
.breadcrumb-list a:hover { 
    color: var(--primary-color); 
}
.breadcrumb-list .crumb-sep { 
    opacity: 0.4; 
}
.breadcrumb-list .crumb-current { 
    color: var(--text-main); 
    background: rgba(0,0,0,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}
body.dark-mode .breadcrumb-list .crumb-current {
    background: rgba(255,255,255,0.1);
}

/* =========================================
   Premium Hero Section (Stylized 3D Vibe)
========================================= */
.blog-hero {
    text-align: center;
    padding: 50px 5% 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-label {
    display: inline-block;
    background: rgba(67, 97, 238, 0.15);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.1);
}

.blog-hero h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    font-family: var(--font-display);
    margin-bottom: 16px; 
    line-height: 1.2; 
    color: var(--text-main);
}

.blog-hero p { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    line-height: 1.6;
    margin-bottom: 35px; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.blog-search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 8px 12px 8px 25px;
}
body.dark-mode .blog-search-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.blog-search-container:focus-within { 
    border-color: var(--primary-color); 
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2); 
}
.blog-search-icon { 
    font-size: 1.3rem; 
    margin-right: 12px; 
    opacity: 0.7; 
}
.blog-search-input {
    flex: 1;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-main);
    border: none;
    outline: none;
}
.blog-search-input::placeholder { 
    color: var(--text-muted); 
    font-weight: 500;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-display);
}
.hero-stat span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3D Animated Illustration Props */
.hero-illustration {
    display: flex;
    justify-content: center;
    gap: 25px;
    height: 80px;
    margin-top: 20px;
}
.hero-3d-prop {
    font-size: 3.5rem;
    display: inline-block;
    animation: float-prop 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 10px rgba(0,0,0,0.15));
}
body.dark-mode .hero-3d-prop {
    filter: drop-shadow(0 15px 10px rgba(0,0,0,0.5));
}
.prop-1 { animation-delay: 0s; }
.prop-2 { animation-delay: 1s; }
.prop-3 { animation-delay: 2s; }
.prop-4 { animation-delay: 0.5s; }

@keyframes float-prop {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(8deg); }
}

/* Responsive Batch 1 */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 2.2rem; }
    .blog-hero p { font-size: 1rem; }
    .hero-stats { gap: 15px; }
    .hero-stat strong { font-size: 1.4rem; }
    .hero-3d-prop { font-size: 2.5rem; }
}

/* =========================================================
   EverydayTools.tech — Premium Blog Hub Styles (BATCH 2)
   Includes: Section Headings, Featured Post, Categories, Trending
========================================================= */

/* =========================================
   Section Headings (Common)
========================================= */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}
.section-badge {
    display: inline-block;
    background: rgba(255, 183, 3, 0.15);
    color: #D49500;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
body.dark-mode .section-badge { color: #FFD166; }
.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-main);
}

/* =========================================
   Featured Post (Editor's Pick)
========================================= */
.featured-post-section {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 5%;
}
.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--card-bg);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 4px solid transparent;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
}
.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.15);
    border-color: var(--primary-color);
}
.featured-image {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 250px;
}
.featured-3d-icon {
    font-size: 6rem;
    z-index: 2;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
}
.featured-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    filter: blur(30px);
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-category {
    align-self: flex-start;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.featured-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: var(--font-display);
}
.featured-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.05rem;
}
.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.featured-btn {
    font-weight: 800;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}
.featured-post-card:hover .featured-btn {
    transform: translateX(5px);
}

/* =========================================
   Category Explorer (3D Pills)
========================================= */
.category-explorer {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 5%;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.filter-pill {
    background: var(--card-bg);
    border: 2px solid rgba(0,0,0,0.05);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
body.dark-mode .filter-pill {
    border-color: rgba(255,255,255,0.05);
}
.filter-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.filter-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
}

/* =========================================
   Trending Articles (Mini Cards)
========================================= */
.trending-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 5%;
}
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.mini-post-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 2px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s, border-color 0.3s;
}
body.dark-mode .mini-post-card {
    border-color: rgba(255,255,255,0.03);
}
.mini-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1);
}
.mini-post-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: transparent;
    -webkit-text-stroke: 2px rgba(0,0,0,0.1);
    line-height: 0.8;
}
body.dark-mode .mini-post-number {
    -webkit-text-stroke: 2px rgba(255,255,255,0.1);
}
.mini-post-card:hover .mini-post-number {
    color: var(--primary-color);
    -webkit-text-stroke: 2px var(--primary-color);
}
.mini-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.mini-post-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-display);
}

/* Responsive Batch 2 */
@media (max-width: 768px) {
    .featured-post-card { grid-template-columns: 1fr; }
    .featured-content { padding: 25px; }
    .featured-image { min-height: 200px; }
    .section-heading h2 { font-size: 1.8rem; }
}

/* =========================================================
   EverydayTools.tech — Premium Blog Hub Styles (BATCH 3)
   Includes: Main Post Grid, Pagination, CTA, FAQ & Media Queries
========================================================= */

/* =========================================
   Main Blog Grid & Cards (Fixed for PC)
========================================= */
.latest-posts-section {
    max-width: 1350px; /* স্ক্রিনের দুপাশের ব্যালেন্স ঠিক রাখার জন্য */
    margin: 0 auto 60px;
    padding: 0 5%;
    width: 100%; /* কন্টেইনার ফুল উইডথ নেওয়ার জন্য */
}

.blog-grid {
    display: grid;
    /* এটি সবচেয়ে স্মার্ট ট্রিক: জায়গা থাকলে ৪টি দেখাবে, না থাকলে সুন্দর করে মানিয়ে নেবে */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px;
    width: 100%;
}

.blog-card {
    display: flex;
    flex-direction: column;
    width: 100% !important; /* মেইন style.css এর রুল ভাঙার জন্য */
    max-width: 100% !important; /* পুরনো নির্দিষ্ট সাইজ ওভাররাইড করার জন্য */
    min-width: 0;
    box-sizing: border-box;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    border: 3px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

body.dark-mode .blog-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.12);
    border-color: var(--primary-color);
}

/* =========================================
   Pagination (Chunky Buttons)
========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--card-bg);
    border: 2px solid rgba(0,0,0,0.08);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}

body.dark-mode .page-btn { border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 0 rgba(255,255,255,0.05); }

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.page-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 0 rgba(42, 64, 168, 0.5);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =========================================
   Discover Free Tools CTA
========================================= */
.discover-tools {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

.discover-card {
    background: linear-gradient(135deg, #4361ee, #f72585);
    border-radius: 30px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    color: white;
    box-shadow: 0 20px 40px rgba(247, 37, 133, 0.2);
    position: relative;
    overflow: hidden;
}

.discover-icon {
    font-size: 5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: bounceIcon 3s infinite ease-in-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.discover-content .section-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(5px);
    margin-bottom: 15px;
}

.discover-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: var(--font-display);
}

.discover-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.6;
}

.discover-content .primary-btn {
    background: white;
    color: #4361ee;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.discover-content .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* =========================================
   Blog FAQ Section
========================================= */
.blog-faq {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

details {
    background: var(--card-bg);
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

body.dark-mode details { border-color: rgba(255,255,255,0.05); }

summary {
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-main);
    font-family: var(--font-display);
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s;
}

details[open] { border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(67, 97, 238, 0.1); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

details p {
    padding: 0 25px 25px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   Global Responsive Adjustments (Batch 3)
========================================= */
@media (max-width: 768px) {
    .discover-card { flex-direction: column; text-align: center; padding: 40px 20px; gap: 20px; }
    .discover-icon { font-size: 4rem; }
    .discover-content p { margin: 0 auto 20px; }
    .blog-grid { grid-template-columns: 1fr; }
    summary { font-size: 1.05rem; padding: 15px 20px; padding-right: 40px; }
    summary::after { right: 15px; }
    details p { padding: 0 20px 20px; font-size: 0.95rem; }
}