/*
Theme Name: DhakaPost
Theme URI: https://dhakapost.com
Author: RL IT / Custom
Author URI: https://dhakapost.com
Description: Custom news portal theme converted from static design. Features 22 homepage category sections, matching category archive and single post designs. Designed for Bengali news websites.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhakapost
Tags: news, blog, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* Theme styles are loaded from assets/css/ via functions.php */
/* Additional theme-specific overrides below */

body {
    font-family: 'SolaimanLipi', 'Kalpurush', Arial, sans-serif;
}

/* Ensure proper WordPress admin bar spacing */
body.admin-bar .navbar-fixed {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .navbar-fixed {
        top: 46px;
    }
}

/* WordPress required classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.gallery-caption {
    font-size: 0.85em;
}

.bypostauthor {
    font-weight: bold;
}

.sticky {
    /* sticky post indicator if needed */
}

/* Screen reader text */
.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 placeholders for homepage */
.dp-section {
    margin-bottom: 20px;
}

.dp-section-title {
    border-bottom: 2px solid #c00;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.dp-section-title a {
    color: inherit;
    text-decoration: none;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background: #f5f5f5;
}
