/*
Theme Name: Chokkhori
Theme URI: https://chalkkhori.com
Author: Chokkhori
Description: সাহিত্য ও সৃজনশীলতার জন্য চকখড়ি WordPress Theme
Version: 2.0
Text Domain: chokkhori
*/


/* =========================================================
   ROOT
========================================================= */

:root {
    --red: #b5121b;
    --dark-red: #8d0c14;
    --black: #1d1d1d;
    --dark: #252525;
    --gray: #666666;
    --light: #f6f3ee;
    --white: #ffffff;
    --border: #ded8cf;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;
    color: var(--black);
    background: var(--white);
    font-family:
        "Noto Serif Bengali",
        "Noto Sans Bengali",
        sans-serif;
    line-height: 1.7;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
select {
    font: inherit;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


.container {
    width: min(94%, 1280px);
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


.header-top {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


.brand-logo,
.custom-logo-link img {
    display: block;
    width: auto;
    max-height: 68px;
    max-width: 320px;
}


.brand-name {
    color: var(--red);
    font-size: 36px;
    font-weight: 800;
}


.header-search {
    margin-left: auto;
}


.search-form {
    display: flex;
    align-items: stretch;
}


.search-field {
    width: 250px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    outline: none;
}


.search-submit {
    border: none;
    background: var(--red);
    color: var(--white);
    padding: 10px 16px;
    cursor: pointer;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.main-nav {
    background: var(--red);
}


.nav-container {
    overflow-x: auto;
}


.chokkhori-artistic-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 50px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    white-space: nowrap;
}


.chokkhori-artistic-menu li {
    margin: 0;
    padding: 0;
}


.chokkhori-artistic-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    transition: 0.25s ease;
}


.chokkhori-artistic-menu li a:hover {
    color: var(--red);
    background: var(--white);
}


.chokkhori-artistic-menu li.current-menu-item a,
.chokkhori-artistic-menu li.current-cat a {
    color: var(--red);
    background: var(--white);
}


/* =========================================================
   MOBILE DROPDOWN BUTTON
========================================================= */

.menu-toggle {
    display: none;
    border: none;
    background: var(--red);
    color: var(--white);
    padding: 10px 14px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}


.menu-toggle-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}


.menu-toggle.is-active .menu-toggle-arrow {
    transform: rotate(180deg);
}


.mobile-category-menu {
    display: none;
}


/* =========================================================
   ISSUE TOPBAR
========================================================= */

.issue-topbar {
    background: var(--light);
    border-bottom: 1px solid var(--border);
}


.issue-topbar-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px 0;
}


.current-issue-info {
    border-left: 5px solid var(--red);
    padding-left: 18px;
}


.issue-label,
.old-issue-label {
    display: block;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 3px;
}


.issue-month {
    display: block;
    font-size: 24px;
    font-weight: 800;
}


.current-issue-info p {
    margin: 5px 0 14px;
    color: var(--gray);
    font-size: 14px;
}


.issue-btn,
.read-btn,
.section-all-btn,
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    padding: 10px 18px;
    font-weight: 700;
    transition: 0.25s ease;
}


.issue-btn:hover,
.read-btn:hover,
.section-all-btn:hover,
.subscribe-btn:hover {
    background: var(--dark-red);
    color: var(--white);
}


.facebook-area {
    display: flex;
    justify-content: center;
}


.facebook-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    background: var(--red);
    padding: 15px 22px;
    box-shadow: var(--shadow);
}


.facebook-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--white);
    color: var(--red);
    border-radius: 50%;
    font-size: 25px;
    font-weight: 800;
}


.facebook-link strong,
.facebook-link small {
    display: block;
}


.facebook-link small {
    opacity: 0.8;
}


.old-issue-area {
    text-align: right;
}


.old-issue-select {
    width: 100%;
    max-width: 260px;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 11px 14px;
    color: var(--black);
}


/* =========================================================
   CURRENT ISSUE
========================================================= */

.current-issue-section {
    padding: 60px 0;
}


.section-heading {
    text-align: center;
    margin-bottom: 35px;
}


.section-heading span {
    color: var(--red);
    font-weight: 800;
}


.section-heading h1 {
    margin: 4px 0 0;
    font-size: 38px;
}


.cover-layout {
    display: grid;
    grid-template-columns: 0.55fr 2fr 0.55fr;
    gap: 25px;
    align-items: stretch;
}


.side-ad {
    min-width: 0;
}


.ad-box {
    height: 100%;
    min-height: 420px;
    border: 1px dashed #bcb5ac;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}


.ad-box span {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}


.main-cover {
    min-width: 0;
}


.cover-post {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow);
}


.cover-image {
    background: #eee;
    min-height: 420px;
}


.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.cover-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: grid;
    place-items: center;
    background: var(--light);
    color: var(--gray);
}


.cover-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.post-category {
    display: inline-block;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}


.cover-content h2 {
    font-size: 30px;
    line-height: 1.45;
    margin-bottom: 15px;
}


.cover-content h2 a:hover,
.post-card h3 a:hover {
    color: var(--red);
}


.cover-content p {
    color: var(--gray);
    margin-bottom: 20px;
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.category-section {
    padding: 65px 0;
    border-top: 1px solid #eee;
}


.section-soft {
    background: var(--light);
}


.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}


.section-kicker {
    display: block;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}


.section-head h2 {
    margin: 0;
    font-size: 32px;
}


.section-all-btn {
    background: var(--white);
    color: var(--red);
    border: 1px solid var(--red);
    padding: 8px 16px;
}


.section-all-btn:hover {
    background: var(--red);
    color: var(--white);
}


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


.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


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


.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}


.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}


.post-card:hover img {
    transform: scale(1.04);
}


.post-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #eee;
    color: var(--gray);
}


.post-card-body {
    padding: 22px;
}


.post-card h3 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 10px;
}


.post-card p {
    color: var(--gray);
    font-size: 15px;
}


.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    color: var(--gray);
    font-size: 13px;
}


.empty-category {
    grid-column: 1 / -1;
    padding: 35px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--border);
}


/* =========================================================
   SUBSCRIBE
========================================================= */

.subscribe-section {
    padding: 70px 0;
    background: var(--red);
}


.subscribe-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--white);
}


.subscribe-box .section-kicker {
    color: rgba(255, 255, 255, 0.75);
}


.subscribe-box h2 {
    margin-bottom: 10px;
    font-size: 34px;
}


.subscribe-box p {
    margin-bottom: 0;
    max-width: 650px;
    opacity: 0.9;
}


.subscribe-btn {
    flex-shrink: 0;
    color: var(--red);
    background: var(--white);
}


.subscribe-btn:hover {
    background: var(--black);
    color: var(--white);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--dark);
    color: #eeeeee;
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
    gap: 45px;
    padding: 70px 0;
}


.footer-logo img {
    max-width: 250px;
    max-height: 80px;
    width: auto;
}


.footer-brand-name {
    color: var(--white);
    font-size: 34px;
    font-weight: 800;
}


.footer-tagline {
    color: #d8d8d8;
    margin: 15px 0;
}


.footer-text,
.footer-social p {
    color: #bbbbbb;
}


.footer-links h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
}


.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}


.footer-links li {
    margin-bottom: 8px;
}


.footer-links a {
    color: #cccccc;
}


.footer-links a:hover {
    color: var(--white);
}


.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    background: var(--red);
    padding: 11px 16px;
}


.footer-facebook-icon {
    font-size: 20px;
    font-weight: 800;
}


.footer-bottom {
    border-top: 1px solid #444444;
}


.footer-bottom-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.footer-bottom p {
    margin: 0;
    color: #aaaaaa;
    font-size: 14px;
}


/* =========================================================
   SINGLE / PAGE BASIC SUPPORT
========================================================= */

.site-main {
    min-height: 400px;
}


.entry-content,
.page-content {
    width: min(92%, 900px);
    margin: 50px auto;
}


.entry-title,
.page-title {
    line-height: 1.4;
}


.entry-content img {
    margin: 25px auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {


    .header-top {
        min-height: 74px;
    }


    .brand-logo,
    .custom-logo-link img {
        max-height: 56px;
        max-width: 240px;
    }


    .header-search,
    .main-nav {
        display: none;
    }


    .menu-toggle {
        display: flex;
    }


    .mobile-category-menu {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }


    .mobile-category-menu.is-open {
        max-height: 700px;
    }


    .mobile-category-menu .chokkhori-artistic-menu {
        display: block;
        min-height: auto;
        padding: 12px 0;
    }


    .mobile-category-menu .chokkhori-artistic-menu li a {
        min-height: 45px;
        justify-content: flex-start;
        padding: 10px 15px;
        color: var(--black);
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        background: var(--white);
    }


    .mobile-category-menu .chokkhori-artistic-menu li a:hover {
        color: var(--white);
        background: var(--red);
    }


    .issue-topbar-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .current-issue-info {
        border-left: none;
        border-top: 4px solid var(--red);
        padding: 15px 0 0;
    }


    .facebook-area {
        justify-content: center;
    }


    .old-issue-area {
        text-align: center;
    }


    .cover-layout {
        grid-template-columns: 1fr;
    }


    .side-ad {
        display: none;
    }


    .cover-post {
        grid-template-columns: 1fr;
    }


    .cover-image,
    .cover-placeholder {
        min-height: 320px;
    }


    .category-posts {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .subscribe-box {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 600px) {


    .container {
        width: min(92%, 100%);
    }


    .brand-logo,
    .custom-logo-link img {
        max-width: 180px;
        max-height: 48px;
    }


    .brand-name {
        font-size: 28px;
    }


    .menu-toggle {
        padding: 9px 11px;
        font-size: 13px;
    }


    .section-heading h1 {
        font-size: 28px;
    }


    .current-issue-section,
    .category-section {
        padding: 45px 0;
    }


    .section-head {
        align-items: flex-start;
    }


    .section-head h2 {
        font-size: 27px;
    }


    .cover-content {
        padding: 24px;
    }


    .cover-content h2 {
        font-size: 26px;
    }


    .category-posts {
        grid-template-columns: 1fr;
    }


    .post-card h3 {
        font-size: 21px;
    }


    .subscribe-section {
        padding: 50px 0;
    }


    .subscribe-box h2 {
        font-size: 28px;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }


    .footer-bottom-inner {
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
    }


    .footer-links ul {
        columns: 2;
    }

}