/*
Theme Name:     Twenty Twenty-Five Child
Theme URI:      https://bangladeshdir.com/twenty-twenty-five-child/
Description:    Child theme for the Twenty Twenty-Five theme
Version:        1.0.0
Author:         BangladeshDir
Author URI:     https://bangladeshdir.com
Template:       twentytwentyfive
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    twentytwentyfive-child
*/

/* =============================
   General Layout
============================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* =============================
   Home Page Layout
============================= */

.latest-posts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

.home-title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 2em;
}

/* =============================
   Post Grid Layout
============================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5em;
        padding: 0 10px;
    }
}

/* =============================
   Post Card
============================= */

.post-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.post-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-content {
    padding: 1em;
}

.post-title {
    font-size: 1.1em;
    margin: 0 0 0.5em;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: #111;
}

.post-excerpt {
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
    margin-top: 0.5em;
}

/* === Mobile Post Card Layout === */
@media (max-width: 600px) {
    .post-card {
        flex-direction: row;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .post-card > a {
        flex: 0 0 40%;
        max-width: 40%;
        border-radius: 8px 0 0 8px;
        overflow: hidden;
    }

    .post-card img {
        border-radius: 8px 0 0 8px;
    }

    .post-content {
        flex: 1;
        padding: 1em;
        word-break: break-word;
    }

    .post-title {
        font-size: 1.2em;
        line-height: 1.3;
    }
}

/* =============================
   Browse Categories
============================= */

.browse-categories {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #ddd;
    text-align: center;
}

.browse-categories h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.parent-cat-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.parent-cat-item {
    background: #f3f3f3;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.parent-cat-item:hover {
    background: #0073aa;
    color: #fff;
}

/* =============================
   Site Header
============================= */

.site-header {
    background: #f9f9f9;
    border-bottom: 2px solid #0073aa;
    padding: 10px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
}

.site-logo img {
    max-width: 150px;
    height: 55px;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
}

/* =============================
   Top Navigation Menu
============================= */

.top-right-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-right-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.top-right-menu li a {
    text-decoration: none;
    color: #0073aa;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.top-right-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.top-right-menu li a:hover {
    color: #005b8a;
}

.top-right-menu li a:hover::after {
    width: 100%;
}

/* =============================
   Search Bar
============================= */

.header-search-container {
    display: flex;
    align-items: center;
    border: 2px solid #0073aa;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    padding-left: 10px;
    width: 260px;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.header-search-container:hover {
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
}

.header-search-container input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 0.95rem;
}

.header-search-container button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0 25px 25px 0;
    transition: background 0.3s ease;
}

.header-search-container button:hover {
    background: #005b8a;
}

/* =============================
   Responsive Header
============================= */

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .top-right-menu {
        justify-content: center;
    }

    .header-search-container {
        width: 100%;
        max-width: 400px;
    }
}

/* =============================
   Related Posts
============================= */

.related-posts h2 {
    font-family: 'Merriweather', serif;
    border-left: 4px solid #222;
    padding-left: 10px;
}

.related-grid .related-item:hover {
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    transition: all 0.2s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.related-item h3 {
    font-weight: 600;
    color: #222;
}

.related-item p {
    color: #555;
}

.related-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 6px;
}

.related-thumb img {
    object-fit: contain;
    max-height: 100%;
    width: auto;
    transition: transform 0.4s ease;
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}/* style.css */.welcome-box {  background-color: #f8f9fa;  padding: 15px;  border-radius: 5px;}.description-text {  color: #555;  font-size: 14px;  line-height: 1.6;}.fixed-thumb {    width: 143px;    height: 107px;    overflow: hidden;    flex-shrink: 0;}.fixed-thumb-img {    width: 143px !important;    height: 107px !important;    object-fit: cover;    display: block;}.posts-grid {    display: flex;    flex-wrap: wrap;    gap: 20px;}.post-card {    width: 160px;}.custom-thumb-wrapper {    width: 300px;    height: 200px;    overflow: hidden;    flex-shrink: 0;}.custom-thumb-img {    width: 300px !important;    height: 200px !important;    object-fit: cover;    display: block;}.custom-thumb-wrapper {    width: 300px;    height: 200px;    overflow: hidden;}.custom-thumb-img {    width: 300px !important;    height: 200px !important;    object-fit: cover;    display: block;}