/* ============== Google Fonts: Inter ============== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============== CSS Variables ============== */

:root {
    --header-height: 4rem;
    --primary-color: #3498db;
    --primary-color-alt: #2980b9;
    --title-color: #2c3e50;
    --text-color: #5D6D7E;
    --body-color: #f8f9fa;
    --container-color: #FFFFFF;
    --border-color: #EAECEF;
    --shadow: 0 10px 40px rgba(44, 62, 80, 0.1);
    --body-font: "Inter", sans-serif;
    --h1-font-size: 2.5rem;
    --normal-font-size: 1rem;
}

/* ============== Base ============== */
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.7;
}
h1, h2, h3 { color: var(--title-color); font-weight: 600; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }

/* ==================== HEADER & NAVIGATION (FINAL VERSION) ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--title-color);
}
.nav__toggle, .nav__close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--title-color);
    z-index: 1100; /* Ensure toggle/close is above the menu */
}

/* --- Mobile Menu Styles (Default) --- */
.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background-color: #2c3e50; /* Solid dark background for the entire panel */
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    padding: 6rem 2rem 2rem;
    transition: right .4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1050;
}
.nav__menu.show-menu {
    right: 0;
}
.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.nav__link {
    color: #ECF0F1; /* Light color for text on dark background */
    background-color: transparent; /* Ensure links have no background themselves */
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
}
.nav__link:hover {
    color: #FFFFFF;
    background-color: rgba(52, 152, 219, 0.1);
}
.nav__link.active-link {
    color: #FFFFFF;
    font-weight: 700;
    background-color: rgba(52, 152, 219, 0.2);
}
.nav__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: #ECF0F1;
}

/* --- Desktop Menu Styles (Overrides) --- */
@media screen and (min-width: 769px) {
    .nav__menu {
        all: unset;
        display: block;
    }
    .nav__list {
        flex-direction: row;
        gap: 3rem;
    }
    .nav__link {
        color: var(--text-color);
        padding: 5px;
        font-size: var(--normal-font-size);
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background-color: transparent;
    }
    .nav__link:hover {
        background-color: transparent;
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
    .nav__link.active-link {
        color: var(--primary-color);
        background-color: transparent;
        font-weight: 600;
        border-bottom-color: var(--primary-color);
    }
    .nav__toggle, .nav__close {
        display: none;
    }
}

/* ==================== Search Hero Section ==================== */
.search-hero {
    background-color: var(--container-color);
    padding: calc(var(--header-height) + 3rem) 0 4rem 0;
    text-align: center;
}
.search-hero h1 { font-size: var(--h1-font-size); margin-bottom: 1rem; }
.search-hero p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem auto; }
.search-bar-container { position: relative; max-width: 700px; margin: 0 auto; }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-color); opacity: 0.5; }
#searchInput {
    width: 100%; height: 55px; padding: 0 20px 0 50px;
    border: 1px solid var(--border-color); border-radius: 30px;
    font-size: 1rem; transition: box-shadow .3s;
}
#searchInput:focus { outline: none; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); border-color: var(--primary-color); }

/* ==================== Post Listing ==================== */
#postContainer { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.post-card { background-color: var(--container-color); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-content { padding: 1.5rem; }
.post-category { display: inline-block; background-color: rgba(52, 152, 219, 0.1); color: var(--primary-color); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.post-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
.post-excerpt { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.read-more-btn { font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; gap: 0.5rem; transition: gap .3s; }
.post-card-link:hover .read-more-btn { gap: 0.8rem; }
#noResultsMessage p { font-size: 1.2rem; font-weight: 500; padding: 3rem; background-color: var(--container-color); border-radius: 12px; }

/* ==================== Footer ==================== */
.footer { background-color: #2c3e50; color: #bdc3c7; padding: 5rem 0 2rem; margin-top: 4rem; }
.footer__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.footer__logo { color: #fff; font-size: 1.5rem; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.footer__title { color: #fff; font-size: 1.15rem; margin-bottom: 1.5rem; }
.footer__description { max-width: 250px; }
.footer__list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link { color: #bdc3c7; transition: .3s; }
.footer__link:hover { color: var(--primary-color); padding-left: 5px; }
.footer__copy { text-align: center; padding-top: 4rem; margin-top: 4rem; border-top: 1px solid #34495e; font-size: 0.9rem; }
/* Mobile view navbar backgrounds */
@media screen and (max-width: 768px) {
    .nav__list {
        background-color: #2c3e50; /* তোমার পছন্দের রঙ */
        padding: 1rem;
    }
    .nav__item {
        background-color: #2c3e50;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}
/* .ad-container {
    width: 100%;
    max-width: 728px; 
    max-height: 90px; 
    margin: 20px auto;
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;

} */
