* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: #eef1f5;
    color: #203256;
    line-height: 1.7;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    color: #133a81;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #f28c34;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1140px, calc(100% - 30px));
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #0e5aa7;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo,
.custom-logo-link {
    display: inline-block;
}

.site-logo img,
.custom-logo {
    display: block;
    max-height: 42px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #f3d36a !important;
}

.menu-toggle {
    display: none;
    border: none;
    background: #ffffff;
    color: #0e5aa7;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Hero */
.hero-section {
    background: #0d5ca8;
    padding: 16px 0 18px;
}

.hero-section .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-quote-inline {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 20px auto;
    padding: 12px 18px 12px 58px;
    background: #faebbc;
    border-left: 5px solid #27ae60;
    border-top: 1px solid #e1cc89;
    border-bottom: 1px solid #e1cc89;
    overflow: hidden;
}

.hero-big-quote {
    position: absolute;
    left: 10px;
    top: -6px;
    font-family: Georgia, serif;
    font-size: 52px;
    font-weight: 700;
    color: #d7c16c;
    line-height: 1;
    opacity: 0.75;
    user-select: none;
}

.hero-inline-text {
    max-width: 880px;
    margin: 0 auto;
    color: #666666;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
    font-family: SolaimanLipi, Kalpurush, 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

.hero-inline-text .fa-quote-left,
.hero-inline-text .fa-quote-right {
    color: #666666;
    font-size: 14px;
    font-weight: 900;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.hero-inline-text .fa-quote-left {
    margin-right: 6px;
}

.hero-inline-text .fa-quote-right {
    margin-left: 6px;
}

/* Main Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
    gap: 30px;
    margin: 34px auto 60px;
}

.content-area,
.sidebar {
    width: 100%;
    min-width: 0;
}

.books-section {
    padding-top: 0;
}

.section-title {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #0e5aa7;
    padding-left: 14px;
    border-left: 4px solid #f28c34;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.book-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(28, 49, 94, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(28, 49, 94, 0.12);
}

.book-thumb {
    display: block;
}

.book-card .book-thumb,
.book-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f4f7fb;
}

.book-card h3 {
    font-size: 15px;
    color: #133a81;
    margin: 16px 16px 10px;
    line-height: 1.45;
    min-height: 50px;
}

.book-card a {
    color: #133a81;
}

.download-btn {
    margin: auto 16px 16px;
    display: inline-block;
    background: #2bb24c;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #23933e;
}

/* Sidebar */
.widget {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 10px 26px rgba(28, 49, 94, 0.06);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #133a81;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebf0f8;
}

.widget-search form {
    display: grid;
    gap: 12px;
}

.widget-search input[type="search"],
.widget-search input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d9e2f2;
    background: #f7f9fd;
    color: #133a81;
}

.widget-search button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: #0e5aa7;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.widget-search button:hover {
    background: #0a4d90;
}

/* Tabs */
.tab-widget {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 10px 26px rgba(28, 49, 94, 0.06);
}

.tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    overflow: hidden;
    background: #1f1f1f;
}

.tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 0;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
    background: #0e5aa7;
    color: #ffffff;
}

.tab-content {
    display: none;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    padding: 10px;
}

.tab-content.active {
    display: block;
}

.tab-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab-posts-list {
    display: grid;
    gap: 16px;
}

.tab-posts-list li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: start;
}

.tab-posts-list .tab-thumb {
    display: block;
}

.tab-posts-list .tab-thumb img {
    width: 50px;
    height: 68px;
    object-fit: cover;
    display: block;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tab-posts-list .post-title {
    display: block;
    color: #1f4e8c;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
}

.tab-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tab-posts-grid li {
    display: block;
}

.tab-posts-grid .tab-thumb {
    display: block;
    margin-bottom: 8px;
}

.tab-posts-grid .tab-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tab-posts-grid .post-title {
    display: block;
    color: #222222;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category / Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f7f9fd;
    color: #133a81;
    font-size: 13px;
    font-weight: 600;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 999px;
    background: #f7f9fd;
    color: #133a81;
    font-size: 14px;
}

.category-list a {
    color: #133a81;
    font-weight: 600;
}

.category-list span {
    color: #6d7b98;
    font-size: 13px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7f9fd;
    color: #133a81;
    font-weight: 700;
}

.pagination a:hover {
    background: #0e5aa7;
    color: #ffffff;
}

/* Subscribe */
.subscribe-section {
    background: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e6ecf7;
    border-bottom: 1px solid #e6ecf7;
}

.subscribe-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 24px;
}

.subscribe-content h2 {
    margin: 0;
    color: #133a81;
    font-size: 32px;
    font-weight: 800;
}

.subscribe-content p {
    color: #586a91;
    margin: 10px 0 0;
    font-size: 15px;
}

.subscribe-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.subscribe-form input {
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #d9e2f2;
    background: #f7f9fd;
    color: #133a81;
}

.subscribe-form button {
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    background: #f28c34;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.subscribe-form button:hover {
    background: #d87421;
}

/* Footer */
.site-footer {
    background: #102348;
    color: #dfe8f5;
    padding: 56px 0 24px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    color: #f28c34 !important;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-about p {
    color: #dfe8f5;
    line-height: 1.75;
    margin-bottom: 14px;
}

.footer-email {
    color: #f28c34 !important;
    font-weight: 700;
    margin-bottom: 18px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
}

.social-icons a:hover {
    background: #f28c34;
}

.footer-contact form {
    display: grid;
    gap: 14px;
}

.footer-contact input,
.footer-contact textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.footer-contact textarea {
    min-height: 120px;
    resize: vertical;
}

.footer-contact button {
    padding: 13px 16px;
    border-radius: 12px;
    border: none;
    background: #f28c34;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #dfe8f5;
    font-size: 14px;
}

.footer-links a:hover {
    color: #f28c34;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: rgba(223, 232, 245, 0.75);
    font-size: 13px;
}

/* Page */
.page-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #133a81;
}

.page-entry {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 26px rgba(28, 49, 94, 0.06);
}

.single-page {
    margin-bottom: 40px;
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-branding {
        max-width: 60%;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        display: block;
    }

    .main-nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 12px;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav a {
        padding: 8px 0;
    }

    .hero-section {
        padding: 14px 0 16px;
    }

    .hero-section .container {
        width: min(100%, calc(100% - 24px));
    }

    .hero-quote-inline {
        margin: 14px auto;
        padding: 12px 14px 12px 46px;
        border-left-width: 4px;
    }

    .hero-big-quote {
        left: 7px;
        top: -2px;
        font-size: 40px;
    }

    .hero-inline-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-inline-text .fa-quote-left,
    .hero-inline-text .fa-quote-right {
        font-size: 12px;
    }

    .main-wrapper,
    .subscribe-inner,
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .book-card .book-thumb,
    .book-card img {
        height: 220px;
    }

    .subscribe-content h2 {
        font-size: 26px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        width: calc(100% - 16px);
    }

    body {
        font-size: 14px;
    }

    .header-inner {
        padding: 10px 0;
        gap: 10px;
    }

    .site-branding {
        max-width: 68%;
    }

    .site-logo img,
    .custom-logo {
        max-height: 34px;
    }

    .menu-toggle {
        padding: 7px 10px;
        font-size: 11px;
    }

    .main-nav ul {
        gap: 8px;
        padding-top: 10px;
    }

    .main-nav a {
        font-size: 12px;
        padding: 7px 0;
    }

    .hero-section {
        padding: 10px 0 12px;
    }

    .hero-section .container {
        width: calc(100% - 16px);
    }

    .hero-quote-inline {
        margin: 10px auto;
        padding: 10px 10px 10px 36px;
        border-left-width: 4px;
    }

    .hero-big-quote {
        left: 6px;
        top: 0;
        font-size: 30px;
    }

    .hero-inline-text {
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-inline-text .fa-quote-left,
    .hero-inline-text .fa-quote-right {
        font-size: 11px;
    }

    .hero-inline-text .fa-quote-left {
        margin-right: 4px;
    }

    .hero-inline-text .fa-quote-right {
        margin-left: 4px;
    }

    .main-wrapper {
        margin: 22px auto 40px;
        gap: 20px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 16px;
        padding-left: 12px;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .book-card {
        border-radius: 14px;
    }

    .book-card .book-thumb,
    .book-card img {
        height: 210px;
    }

    .book-card h3 {
        font-size: 14px;
        margin: 14px 14px 10px;
        min-height: auto;
    }

    .download-btn {
        margin: auto 14px 14px;
        padding: 9px 0;
        font-size: 13px;
    }

    .widget,
    .tab-widget {
        border-radius: 14px;
        padding: 18px;
        margin-bottom: 18px;
    }

    .widget-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .tab-nav {
        flex-direction: row;
        gap: 0;
    }

    .tab-btn {
        width: auto;
        font-size: 12px;
        padding: 11px 6px;
    }

    .tab-content {
        padding: 8px;
    }

    .tab-posts-list li {
        grid-template-columns: 46px 1fr;
        gap: 10px;
    }

    .tab-posts-list .tab-thumb img {
        width: 46px;
        height: 62px;
    }

    .tab-posts-list .post-title {
        font-size: 12px;
        line-height: 1.4;
    }

    .tab-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tab-posts-grid .post-title {
        font-size: 11px;
    }

    .category-list li {
        padding: 10px 12px;
        font-size: 13px;
    }

    .subscribe-section {
        padding: 30px 0;
    }

    .subscribe-content h2 {
        font-size: 22px;
    }

    .subscribe-content p {
        font-size: 14px;
    }

    .subscribe-form {
        grid-template-columns: 1fr;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-inner {
        gap: 22px;
    }

    .footer-logo {
        font-size: 22px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-entry {
        padding: 18px;
        border-radius: 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        width: calc(100% - 14px);
    }

    .hero-quote-inline {
        padding: 9px 9px 9px 32px;
    }

    .hero-big-quote {
        left: 5px;
        font-size: 26px;
    }

    .hero-inline-text {
        font-size: 12px;
        line-height: 1.6;
    }

    .section-title {
        font-size: 20px;
    }

    .book-card .book-thumb,
    .book-card img {
        height: 190px;
    }

    .widget,
    .tab-widget {
        padding: 16px;
    }
}