/*
Theme Name: Poralekha Pro
Theme URI: https://example.com/
Author: Abdur Rahman
Description: Professional Educational Theme inspired by Poralekha.info
Version: 1.1
Text Domain: poralekha-pro
*/

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'SolaimanLipi', Arial, sans-serif;
    background-color: #f2f4f7;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #0056b3, #0088cc);
    color: #ffffff;
    padding: 25px 20px;
    text-align: center;
}

header h1 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
}

header p {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Navigation Bar (Split Layout: Left & Right) */
.main-nav {
    background-color: #003d80;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container-split {
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between; /* Bam o dan pashe alada korar jonno */
    align-items: center;
}

.nav-left a {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
    display: inline-block;
}

.nav-left a:hover {
    background-color: #002b59;
}

/* Category Dropdown Menu Styles */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.cat-btn {
    background-color: #002b59;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.cat-btn:hover {
    background-color: #001a36;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    right: 0; /* Dropdown dan pashe align thakbe */
}

.dropdown-content a {
    color: #333333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #0056b3 !important;
}

/* Layout Container & Full Width Setup */
.container {
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.full-width-container {
    max-width: 900px !important;
    margin: 30px auto;
}

.full-width-container .main-content {
    width: 100% !important;
    flex: 100% !important;
}

/* Main Content Area */
.main-content {
    flex: 3;
}

.section-title {
    background: #ffffff;
    padding: 12px 18px;
    border-left: 5px solid #0056b3;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 0 5px 5px 0;
}

.post-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card h3 a {
    color: #0056b3;
    text-decoration: none;
    font-size: 22px;
}

.post-card h3 a:hover {
    color: #003d80;
}

.post-card p {
    margin: 12px 0;
    color: #555;
}

.read-more-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #ffffff !important;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}

.read-more-btn:hover {
    background-color: #003d80;
}

/* Pagination Styling (1, 2, 3...) */
.pagination-wrapper {
    margin: 30px 0;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #ffffff;
    color: #0056b3;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.pagination-wrapper .page-numbers.current {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

.pagination-wrapper .page-numbers:hover {
    background: #003d80;
    color: #ffffff;
    border-color: #003d80;
}

/* Minimal Single Line Centered Footer */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 25px 0;
    font-family: 'Hind Siliguri', sans-serif;
    margin-top: 50px;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    font-size: 15px;
    color: #aaaaaa;
    width: 100%;
}

.footer-bottom strong {
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container-split {
        padding: 0 5px;
    }
}

/* Single Post Title Styling */
.single-post-title {
    font-size: 28px;
    color: #003d80;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Share Section Styling */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn.fb { background-color: #1877f2; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.in { background-color: #0a66c2; }
.share-btn.copy { background-color: #e4e6eb; color: #333; }

/* Clean Trickbd Style Post Title & Date */
.single-post-title {
    background: #f1f3f5;
    color: #003d80;
    padding: 15px 20px;
    border-left: 5px solid #0056b3;
    border-radius: 4px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-meta-date {
    background-color: #f8f9fa;
    color: #555;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* Share Section Styling */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-btn.fb { background-color: #1877f2; }
.share-btn.tw { background-color: #1da1f2; }
.share-btn.in { background-color: #0a66c2; }
.share-btn.copy { background-color: #e4e6eb; color: #333; }

/* Full-Width Colored Bar with Centered Title */
.category-main-wrapper {
    width: 100%;
    margin: 35px 0 25px 0;
    text-align: center;
    box-sizing: border-box;
}

.category-title-box {
    width: 100%;
    background: #0056b3; /* Full width colored strip/bar */
    padding: 10px 0;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 2px solid #004085;
    border-bottom: 2px solid #004085;
}

.category-title-box h2 {
    background-color: transparent !important; /* Saada box-ti bad dewar jonno */
    color: #ffffff !important;                /* Lekhatike saada korar jonno */
    font-size: 22px;
    font-weight: 700;
    padding: 0;
    margin: 0;
    border: none !important;                  /* Border bad dewar jonno */
    display: inline-block;
}

.category-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.single-cat-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    color: #222;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.single-cat-box:hover {
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}

.single-cat-box .cat-icon {
    font-size: 20px;
    margin-bottom: 6px;
    line-height: 1;
}

.single-cat-box span:not(.cat-icon) {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Post Inner Elements Styling */
.post-main-title {
    font-size: 24px;
    color: #111;
    margin-bottom: 15px;
    font-weight: 700;
}

.post-sub-title {
    font-size: 19px;
    color: #0056b3;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
    margin: 20px 0 10px 0;
}

.post-image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.custom-download-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #ffffff !important;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.custom-download-btn:hover {
    background-color: #004085;
}

.step-guide-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.post-outro-box {
    background: #e8f4fd;
    border-left: 4px solid #1b72e8;
    padding: 12px 15px;
    margin-top: 20px;
    font-weight: 600;
}

/* Mobile View-e Categories ebong Table Design Fix Korar Complete CSS */

@media screen and (max-width: 767px) {
    /* ۱. Footer Categories List Responsive Fix */
    .custom-post-wrapper ul,
    footer .widget_categories ul {
        display: block !important;
        column-count: 1 !important;
    }

    .custom-post-wrapper ul li,
    footer .widget_categories ul li {
        text-decoration: none !important;
        border-bottom: 1px solid #ddd !important;
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
    }

    /* ২. Single Post Table & Content Responsive Fix */
    .table-responsive-wrapper, 
    table {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }
    
    .custom-data-table th, 
    .custom-data-table td {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    /* ৩. Post Wrapper Padding & Overflow Fix */
    .custom-post-wrapper {
        padding: 10px !important;
        overflow-x: hidden !important;
    }
}

/* শপ বা মেনু পেজের ডিফল্ট টাইটেল হাইড করার জন্য */
.page .entry-title, 
.post-title,
h1.page-title {
    display: none !important;
}