/*
Theme Name: Jacché Pro v2
Theme URI: https://jacche.com
Description: Premium Video & News Theme — Light Gray + Sky Blue
Version: 2.0.0
Author: Opu
Text Domain: jacche-pro-v2
*/

/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============ RESET ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
    font-family:'Noto Sans Bengali','Inter',-apple-system,sans-serif;
    background:#f0f3f7;
    color:#2c3e50;
    line-height:1.6;
    -webkit-font-smoothing:antialiased
}
body::before{
    content:'';position:fixed;top:0;left:0;right:0;
    height:300px;
    background:linear-gradient(135deg,rgba(74,144,217,0.06) 0%,rgba(126,200,227,0.04) 100%);
    pointer-events:none;z-index:-1
}
a{color:#4a90d9;text-decoration:none;transition:color .2s}
a:hover{color:#357abd}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}

/* ============ CONTAINER ============ */
.container{max-width:1280px;margin:0 auto;padding:0 20px}

/* ============ HEADER ============ */
.site-header{
    background:#fff;
    border-bottom:1px solid #e8ecf0;
    position:sticky;top:0;z-index:100;
    box-shadow:0 1px 4px rgba(0,0,0,0.06)
}
.header-inner{
    display:flex;align-items:center;
    justify-content:space-between;
    height:72px;max-width:1280px;margin:0 auto;padding:0 28px;
    gap:16px
}
.site-logo{display:flex;align-items:center;flex-shrink:0}
.site-logo img,.site-logo .custom-logo,.custom-logo-link img{display:block;height:38px;width:auto;max-width:200px}
.nav-menu{display:flex;gap:28px;align-items:center}
.nav-menu a{
    color:#5a6a7a;font-size:.9rem;font-weight:600;
    padding:28px 0;border-bottom:2px solid transparent;
    transition:all .2s
}
.nav-menu a:hover,.nav-menu a.active{color:#4a90d9;border-bottom-color:#4a90d9}
.nav-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer;color:#2c3e50;padding:0}

.header-search{display:flex;align-items:center}
.header-search input{
    border:1px solid #dfe3e8;border-radius:8px;
    padding:9px 16px;font-size:.85rem;width:220px;
    background:#f8f9fb;transition:all .2s;
    font-family:inherit
}
.header-search input:focus{
    outline:none;border-color:#4a90d9;background:#fff;width:260px;
    box-shadow:0 0 0 3px rgba(74,144,217,0.1)
}
.header-search button{
    background:#4a90d9;border:none;color:#fff;
    border-radius:8px;padding:9px 14px;margin-left:6px;
    cursor:pointer;font-size:.9rem;transition:background .2s
}
.header-search button:hover{background:#357abd}

/* ============ CONTAINER ============ */
.container{max-width:1280px;margin:0 auto;padding:0 28px}

/* ============ HERO SECTION ============ */
.hero-section{
    background:linear-gradient(135deg,#e8f0fe 0%,#d4e8f7 100%);
    padding:28px 0 20px;margin-bottom:20px;
    border-bottom:1px solid #d4dee8
}
.hero-inner{
    max-width:1280px;margin:0 auto;padding:0 28px;
    display:grid;grid-template-columns:2fr 1fr;gap:20px
}
.hero-featured{
    position:relative;border-radius:12px;overflow:hidden;
    background:#fff;box-shadow:0 2px 16px rgba(74,144,217,0.12)
}
.hero-featured img{width:100%;height:360px;object-fit:cover}
.hero-featured .hero-overlay{
    position:absolute;bottom:0;left:0;right:0;
    padding:28px;background:linear-gradient(transparent,rgba(26,42,58,0.88))
}
.hero-featured .hero-cat{
    display:inline-block;background:#4a90d9;color:#fff;
    padding:4px 14px;border-radius:4px;font-size:.75rem;font-weight:600;
    margin-bottom:10px
}
.hero-featured h2{color:#fff;font-size:1.4rem;font-weight:700;line-height:1.3}
.hero-featured h2 a{color:#fff;text-decoration:none}
.hero-featured h2 a:hover{text-decoration:underline}
.hero-featured .hero-date{color:rgba(255,255,255,.7);font-size:.8rem;margin-top:4px}

.hero-side{display:flex;flex-direction:column;gap:10px}
.hero-side-item{
    display:flex;gap:12px;background:#fff;
    border-radius:8px;padding:10px;align-items:center;
    box-shadow:0 1px 4px rgba(0,0,0,0.04);transition:transform .2s;
    cursor:pointer
}
.hero-side-item:hover{transform:translateX(3px)}
.hero-side-item img{width:80px;height:56px;object-fit:cover;border-radius:4px;flex-shrink:0}
.hero-side-item .side-info{overflow:hidden}
.hero-side-item .side-cat{
    font-size:.65rem;color:#4a90d9;font-weight:600;text-transform:uppercase
}
.hero-side-item h4{font-size:.8rem;font-weight:600;line-height:1.2;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#2c3e50
}
.hero-side-item h4 a{color:#2c3e50;text-decoration:none}
.hero-side-item .side-date{font-size:.7rem;color:#8a9aa8;margin-top:2px}

/* ============ MAIN LAYOUT ============ */
.main-layout{
    display:grid;grid-template-columns:260px 1fr;gap:24px;
    max-width:1280px;margin:0 auto;padding:0 20px 40px
}

/* ============ SIDEBAR ============ */
.sidebar{position:sticky;top:88px;align-self:start}
.sidebar-widget{
    background:#fff;border-radius:10px;
    padding:16px;margin-bottom:16px;
    box-shadow:0 1px 4px rgba(0,0,0,0.04);
    border:1px solid #e8ecf0
}
.sidebar-widget h3{
    font-size:.85rem;font-weight:700;color:#2c3e50;
    margin-bottom:10px;padding-bottom:8px;
    border-bottom:2px solid #e8f0fe;display:flex;align-items:center;gap:6px
}
.sidebar-widget h3 .icon{font-size:1rem}
.cat-list{display:flex;flex-direction:column;gap:4px}
.cat-list a{
    display:flex;justify-content:space-between;align-items:center;
    padding:7px 12px;border-radius:6px;font-size:.82rem;
    color:#5a6a7a;transition:all .15s
}
.cat-list a:hover{
    background:#e8f0fe;color:#4a90d9
}
.cat-list a .count{
    background:#e8ecf0;color:#7a8a9a;
    padding:1px 8px;border-radius:10px;font-size:.7rem;font-weight:600
}

/* ============ CONTENT AREA ============ */
.content-header{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:20px
}
.content-header h2{font-size:1.3rem;font-weight:700;color:#2c3e50}
.content-header .view-all{
    font-size:.82rem;color:#4a90d9;font-weight:500
}

/* ============ VIDEO GRID ============ */
.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:16px;margin-bottom:24px
}
.video-card{
    background:#fff;border-radius:10px;overflow:hidden;
    box-shadow:0 1px 4px rgba(0,0,0,0.04);
    border:1px solid #e8ecf0;
    transition:transform .2s,box-shadow .2s;cursor:pointer
}
.video-card:hover{
    transform:translateY(-3px);
    box-shadow:0 4px 16px rgba(74,144,217,0.12)
}
.video-card-thumb{
    position:relative;overflow:hidden;aspect-ratio:16/9;
    background:#e8ecf0
}
.video-card-thumb img{
    width:100%;height:100%;object-fit:cover;
    transition:transform .3s
}
.video-card:hover .video-card-thumb img{transform:scale(1.05)}
.video-card-thumb .play-overlay{
    position:absolute;top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:44px;height:44px;background:rgba(74,144,217,.9);
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:1.1rem;opacity:0;
    transition:opacity .3s
}
.video-card:hover .play-overlay{opacity:1}
.video-card .cat-badge{
    position:absolute;top:8px;left:8px;
    background:rgba(44,62,80,.85);backdrop-filter:blur(2px);
    color:#fff;padding:2px 8px;border-radius:4px;
    font-size:.65rem;font-weight:600
}
.video-card-info{padding:10px 12px 12px}
.video-card-info h3{
    font-size:.85rem;font-weight:600;line-height:1.25;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    color:#2c3e50;margin-bottom:4px
}
.video-card-info h3 a{color:#2c3e50;text-decoration:none}
.video-card-meta{
    display:flex;justify-content:space-between;align-items:center;
    font-size:.72rem;color:#8a9aa8
}

/* ============ PAGINATION ============ */
.pagination{
    display:flex;justify-content:center;gap:6px;
    padding:16px 0
}
.pagination a,.pagination span{
    padding:8px 14px;border-radius:6px;
    font-size:.85rem;font-weight:500;transition:all .2s
}
.pagination a{background:#fff;color:#4a90d9;border:1px solid #dfe3e8}
.pagination a:hover{background:#4a90d9;color:#fff;border-color:#4a90d9}
.pagination .current{background:#4a90d9;color:#fff;border:1px solid #4a90d9}

/* ============ SINGLE POST ============ */
.single-header{
    background:#fff;padding:32px 0;
    border-bottom:1px solid #e8ecf0
}
.single-container{
    max-width:800px;margin:0 auto;padding:0 20px
}
.single-cat a{
    color:#4a90d9;font-size:.8rem;font-weight:600;text-transform:uppercase
}
.single-title{
    font-size:2rem;font-weight:800;color:#1a2a3a;
    margin:8px 0 12px;line-height:1.2
}
.single-meta{
    display:flex;gap:16px;font-size:.82rem;color:#8a9aa8
}
.single-content{
    max-width:800px;margin:0 auto;padding:24px 20px 40px;
    background:#fff;border-radius:10px;
    box-shadow:0 1px 4px rgba(0,0,0,0.04)
}
.single-content p{margin-bottom:16px;font-size:1rem;line-height:1.8;color:#3a4a5a}
.single-content h2,.single-content h3{margin:24px 0 12px;color:#1a2a3a}
.single-content img{border-radius:8px;margin:16px 0}
.single-content iframe{width:100%;aspect-ratio:16/9;border-radius:8px;margin:16px 0}

/* ============ FOOTER ============ */
.site-footer{
    background:linear-gradient(135deg,#1a2a3a 0%,#0d1a2a 100%);
    color:#c0d0e0;padding:48px 0 24px;margin-top:48px
}
.footer-inner{
    max-width:1280px;margin:0 auto;padding:0 20px;
    display:grid;grid-template-columns:repeat(3,1fr);gap:32px
}
.footer-widget h4{
    color:#fff;font-size:.9rem;font-weight:700;margin-bottom:12px
}
.footer-widget ul li{margin-bottom:6px}
.footer-widget a{color:#8aa0b8;font-size:.82rem}
.footer-widget a:hover{color:#7ec8e3}
.footer-bottom{
    text-align:center;border-top:1px solid rgba(255,255,255,.08);
    padding-top:16px;margin-top:24px;font-size:.8rem;color:#5a7a8a
}

/* ============ PAGE HEADER ============ */
.page-header{
    background:linear-gradient(135deg,#e8f0fe,#d4e8f7);
    padding:24px 0;margin-bottom:24px;
    border-bottom:1px solid #d4dee8
}
.page-header h1{font-size:1.6rem;font-weight:800;color:#1a2a3a}
.page-header p{color:#5a6a7a;font-size:.9rem;margin-top:4px}

/* ============ SEARCH ============ */
.search-results-count{margin-bottom:16px;font-size:.9rem;color:#5a6a7a}

/* ============ 404 ============ */
.error-page{text-align:center;padding:80px 20px}
.error-page h1{font-size:3rem;font-weight:800;color:#4a90d9}
.error-page p{font-size:1.1rem;color:#7a8a9a;margin:12px 0 24px}

/* ============ RESPONSIVE ============ */
@media(max-width:1024px){
    .hero-inner{grid-template-columns:1fr}
    .hero-side{display:grid;grid-template-columns:repeat(2,1fr)}
    .main-layout{grid-template-columns:1fr}
    .sidebar{display:none}
    .video-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
    .nav-menu{display:none}
    .nav-toggle{display:block}
    .header-search input{width:140px}
    .header-search input:focus{width:160px}
    .hero-featured img{height:200px}
    .hero-featured h2{font-size:1rem}
    .hero-side{grid-template-columns:1fr}
    .video-grid{grid-template-columns:repeat(2,1fr)}
    .footer-inner{grid-template-columns:1fr}
    .single-title{font-size:1.4rem}
}
@media(max-width:480px){
    .video-grid{grid-template-columns:1fr}
    .header-search{display:none}
}
