/*
Theme Name: UltraFlex Theme
Theme URI: https://test.naturalitem.com
Author: Shamim
Author URI: https://naturalitem.com
Description: A Professional Lightweight Multipurpose WordPress Theme
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ultraflex-theme
Copyright: (C) 2024 Shamim
Tested up to: 6.5
Requires PHP: 7.4
Tags: blog, one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/


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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f7f7f7;
    color: #222;
}

/* ========== Containers ========== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ========== Main Content ========== */
.site-content {
    padding: 40px 0;
}

.post {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.post h2 {
    margin-bottom: 10px;
}

.post h2 a {
    color: #222;
    text-decoration: none;
}

.post h2 a:hover {
    color: #0073aa;
}

.entry-content {
    color: #333;
    font-size: 16px;
}

/* ========== Navigation Menu ========== */
.site-nav {
    margin-top: 15px;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

.main-menu li a:hover {
    color: #0073aa;
}
/* ========== 404 Page ========== */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-title {
    font-size: 80px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
}

.error-message {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
}

.error-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.error-btn:hover {
    background: #005c87;
}
/* ========== Page Template ========== */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #111;
}

.page-body {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
}
/* ===== Layout: Two Columns ===== */
.two-columns {
    display: flex;
    gap: 30px;
}

/* Content Area */
.content-area {
    width: 70%;
}

/* Sidebar */
.sidebar {
    width: 30%;
}
/* ===== Sidebar Widgets Design ===== */

.widget {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111;
    border-left: 4px solid #0073aa;
    padding-left: 10px;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    text-decoration: none;
    color: #333;
}

.widget ul li a:hover {
    color: #0073aa;
}
/* ===== Responsive: Hide Sidebar on Mobile ===== */
@media (max-width: 768px) {

    
    .two-columns {
        display: block;
    }

    /* Content full width */
    .content-area {
        width: 100%;
    }

    /* Sidebar hide */
    .sidebar {
        display: none;
    }

    /* Single post padding adjust */
    .single-post,
    .page-content {
        padding: 20px;
    }

    /* Text size adjust */
    .single-title,
    .page-title {
        font-size: 26px;
        line-height: 1.3;
    }

    .single-meta {
        font-size: 14px;
    }
}
/* ===== Mobile Reading Optimization ===== */
@media (max-width: 768px) {

    /* Overall container spacing */
    .site-content {
        padding: 15px;
    }

    /* Single post + Page body readability */
    .single-content,
    .page-body,
    .content-area {
        font-size: 17px;
        line-height: 1.75;
    }

    /* Paragraph spacing */
    .single-content p,
    .page-body p {
        margin-bottom: 18px;
    }

    /* Images fully responsive */
    .single-thumb img,
    .page-content img,
    .entry-content img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    /* Headings resize for mobile */
    h1, .single-title, .page-title {
        font-size: 26px;
        line-height: 1.3;
    }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }

}
/* ===== Single Post Navigation ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.post-navigation a {
    font-size: 18px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.post-navigation a:hover {
    color: #005c87;
    text-decoration: underline;
}

.prev-post {
    text-align: left;
}

.next-post {
    text-align: right;
}
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* ===== Pagination Design ===== */
.site-pagination {
    margin: 40px 0;
    text-align: center;
}

.site-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}

.site-pagination li a,
.site-pagination li span {
    display: block;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.site-pagination li a:hover {
    background: #0073aa;
    color: #fff;
}

.site-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
/* Featured Categories Section */
.featured-categories {
    margin: 60px 0;
    text-align: center;
}

.featured-categories h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #222;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cat-box {
    background: #f8f8f8;
    padding: 40px 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    cursor: pointer;
}

.cat-box:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.cat-box:hover .cat-icon {
    transform: scale(1.15);
    transition: 0.25s ease;
}

/* Step–24: Category Icons */
.cat-icon {
    font-size: 38px;
    color: #0073aa;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cat-box {
        padding: 25px;
        font-size: 18px;
    }

    /* Step–24.4: Mobile Icon Size */
    .cat-icon {
        font-size: 32px;
    }
}

/* ============================
   HEADER LAYOUT (Phase–1)
============================ */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-menu li a {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.main-menu li a:hover {
    color: #0073aa;
}

/* Step–51: Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* ===============================
   Mobile Menu Animation (Step-17+18 Final)
================================== */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 8;
}

/* Mobile button base style */
.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
}

@media (max-width: 768px) {

    /* show hamburger on mobile */
    .menu-toggle {
        display: block;
    }

   /* Slide menu from RIGHT (Final) */
.main-menu {
    position: fixed;
    top: 0;
    right: -260px; /* hidden by default */
    width: 260px;
    height: 100%;
    background: #ffffff;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transition: right 0.35s ease-in-out;
    z-index: 999;
    display: block !important;
    flex-direction: column;
    gap: 18px;
}

/* Show menu when open */
.main-menu.menu-open {
    right: 0;
}


    .main-menu li {
        margin-bottom: 12px;
    }

    .main-menu a {
        font-size: 18px;
        font-weight: 600;
        color: #111;
        text-decoration: none;
    }
     /* STEP–20 Typography Polish */
    .main-menu a {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.4;
        padding: 10px 0;
        display: block;
    }
/* Step–21: Active Menu Highlight */
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    color: #0073aa !important;
    font-weight: 700;
    background: #f2f9ff;
    border-radius: 6px;
    padding: 8px 12px;
}

    .main-menu li {
        margin-bottom: 10px;
    }

    .main-menu a:hover {
        color: #0073aa;
    }

    .main-menu .current-menu-item > a {
        color: #0073aa;
        font-weight: 700;
    }
}
/* Mobile Close (X) Button – final */
.mobile-close-btn {
    display: none;  
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    z-index: 1000;
}
/* ===============================
   Step–22: Sticky Header + Shadow
================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}

/* Scroll করলে shadow apply হবে */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
/* ==========================================================================
   Step 3: Mobile Menu Styling (UltraFlex)
   ========================================================================== */

/* Hide Mobile Menu on Desktop */
.mobile-only-menu {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    /* Show Mobile Menu on Small Screens */
    .mobile-only-menu {
        display: block !important;
    }

    .main-menu li {
        list-style: none;
        margin-bottom: 15px;
    }

    .main-menu li a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .main-menu li a:hover {
        color: #6366f1; /* Theme brand color */
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   SECTION: PROFESSIONAL RESPONSIVE FOOTER SYSTEM
   ========================================================================== */
.site-footer {
    padding: 80px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Fix for Menu Link Colors */
.footer-column a {
    color: inherit !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    opacity: 1;
    padding-left: 5px;
}

/* Social Icons Round & Alignment Fix */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2);
    color: inherit !important;
    font-size: 16px;
    transition: all 0.4s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding-left: 0 !important; 
}

/* Responsive Grid System [cite: 2026-01-09] */
@media (max-width: 991px) {
    .footer-column { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 767px) {
    .footer-column { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 480px) {
    .footer-column { flex: 0 0 100%; max-width: 100%; text-align: center; }
    .footer-socials { justify-content: center; }
}



/* ==================================================
 * WordPress Default Classes
 * ================================================== */
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.gallery-caption {
    font-size: 11px;
    line-height: 17px;
    margin: 0 0 12px;
}
.sticky {
    background: #f7f7f7;
    border: 1px solid #eee;
}
.bypostauthor {
    border: 1px solid #ddd;
}

/* ================================================================
   FOOTER MENU PAGES TEXT CLARITY (Strictly for Inner Pages)
   ================================================================ */

body.page:not(.home) {
    background-color: #0f172a !important;
}

body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content span,
body.page:not(.home) .entry-content li {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}