/*
Theme Name: Somoy Barta
Theme URI: https://example.com/
Author: Somoy Barta
Description: A responsive Bengali news magazine WordPress theme converted from the supplied HTML design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: somoy-barta
*/


  :root{
    --paper:#FBF8F3;
    --ink:#1C1A17;
    --ink-soft:#5B564E;
    --rule:#E4DCCE;
    --red:#A3271F;
    --red-deep:#7C1D17;
    --gold:#B8862E;
    --card:#FFFFFF;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Hind Siliguri', sans-serif;
    background:var(--paper);
    color:var(--ink);
    line-height:1.5;
  }
  h1,h2,h3,h4, .headline{
    font-family:'Noto Serif Bengali', serif;
    font-weight:700;
    line-height:1.28;
  }
  a{ color:inherit; text-decoration:none; }
  img{ max-width:100%; display:block; }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 20px; }

  /* ---------- Top utility bar ---------- */
  .utility{
    background:var(--ink);
    color:#D8D2C6;
    font-size:12.5px;
  }
  .utility .wrap{
    display:flex; justify-content:space-between; align-items:center;
    height:34px;
  }
  .utility .date{ letter-spacing:.02em; }
  .utility nav{ display:flex; gap:16px; }
  .utility nav a{ opacity:.85; }
  .utility nav a:hover{ opacity:1; text-decoration:underline; }

  /* ---------- Masthead ---------- */
  .masthead{
    background:var(--paper);
    border-bottom:3px solid var(--ink);
  }
  .masthead .wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding-top:22px; padding-bottom:18px;
  }
  .logo{
    font-family:'Tiro Bangla', serif;
    font-size:44px;
    font-weight:700;
    letter-spacing:.01em;
    color:var(--ink);
  }
  .logo span{ color:var(--red); }
  .logo small{
    display:block;
    font-family:'Hind Siliguri', sans-serif;
    font-size:11.5px;
    font-weight:600;
    letter-spacing:.28em;
    color:var(--ink-soft);
    margin-top:2px;
  }
  .search-box{
    display:flex; align-items:center; gap:8px;
    border:1.5px solid var(--rule);
    border-radius:999px;
    padding:8px 16px;
    font-size:13px;
    color:var(--ink-soft);
    min-width:220px;
  }
  .search-box svg{ flex-shrink:0; opacity:.6; }

  /* ---------- Nav ---------- */
  .navbar{
    background:var(--red);
    position:sticky; top:0; z-index:50;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
  }
  .navbar .wrap{
    display:flex; align-items:stretch;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .navbar .wrap::-webkit-scrollbar{ display:none; }
  .navbar a{
    color:#F7EDE6;
    font-size:15px;
    font-weight:600;
    padding:13px 16px;
    white-space:nowrap;
    border-bottom:3px solid transparent;
    transition:background .15s;
  }
  .navbar a:hover, .navbar a.active{
    background:var(--red-deep);
    border-bottom-color:var(--gold);
  }

  /* ---------- Ticker ---------- */
  .ticker{
    background:var(--ink);
    color:#fff;
    display:flex;
    align-items:center;
    height:42px;
    overflow:hidden;
  }
  .ticker .tag{
    background:var(--gold);
    color:var(--ink);
    font-weight:700;
    font-size:13px;
    padding:0 16px;
    height:100%;
    display:flex;
    align-items:center;
    flex-shrink:0;
    letter-spacing:.04em;
  }
  .ticker .track-wrap{
    overflow:hidden;
    flex:1;
  }
  .ticker .track{
    display:flex;
    gap:60px;
    white-space:nowrap;
    animation:scroll-left 32s linear infinite;
    padding-left:100%;
    font-size:14px;
  }
  .ticker .track span{ opacity:.5; margin-left:8px; }
  @keyframes scroll-left{
    from{ transform:translateX(0); }
    to{ transform:translateX(-100%); }
  }
  @media (prefers-reduced-motion: reduce){
    .ticker .track{ animation:none; padding-left:16px; }
  }

  /* ---------- Layout grid ---------- */
  .layout{
    display:grid;
    grid-template-columns:1fr 320px;
    gap:34px;
    padding:32px 0 10px;
  }
  @media (max-width:900px){
    .layout{ grid-template-columns:1fr; }
  }

  /* ---------- Hero ---------- */
  .hero{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:22px;
    padding-bottom:30px;
    border-bottom:1px solid var(--rule);
    margin-bottom:30px;
  }
  @media (max-width:640px){ .hero{ grid-template-columns:1fr; } }

  .hero-main .thumb{
    aspect-ratio:16/10;
    border-radius:4px;
    overflow:hidden;
    margin-bottom:14px;
    background:linear-gradient(135deg,#d8cdb8,#a3271f22);
  }
  .kicker{
    display:inline-block;
    color:var(--red);
    font-weight:700;
    font-size:12.5px;
    letter-spacing:.06em;
    margin-bottom:8px;
  }
  .hero-main h1{ font-size:30px; margin-bottom:10px; }
  .hero-main p{ color:var(--ink-soft); font-size:15px; margin-bottom:10px; }
  .meta{ font-size:12.5px; color:#8B8578; }

  .hero-side{ display:flex; flex-direction:column; gap:18px; }
  .side-story{
    display:flex; gap:12px;
    padding-bottom:18px;
    border-bottom:1px dashed var(--rule);
  }
  .side-story:last-child{ border-bottom:none; padding-bottom:0; }
  .side-story .thumb{
    width:110px; height:78px; flex-shrink:0;
    border-radius:4px; overflow:hidden;
    background:linear-gradient(135deg,#cbb;,#a3271f18);
    background:linear-gradient(135deg,#d8cdb8,#a3271f18);
  }
  .side-story h3{ font-size:15.5px; margin-bottom:4px; }

  /* placeholder color blocks standing in for photos */
  .ph{ width:100%; height:100%; }
  .ph1{ background:linear-gradient(135deg,#e7c9a9,#a3271f); }
  .ph2{ background:linear-gradient(135deg,#c9d6c1,#3f5c3f); }
  .ph3{ background:linear-gradient(135deg,#e3d3ee,#6a4a8a); }
  .ph4{ background:linear-gradient(135deg,#f0d9a0,#b8862e); }
  .ph5{ background:linear-gradient(135deg,#c7dae8,#2f5b7a); }
  .ph6{ background:linear-gradient(135deg,#e8c4c4,#8a2f2f); }
  .ph7{ background:linear-gradient(135deg,#d3e3d1,#4a7a5a); }
  .ph8{ background:linear-gradient(135deg,#dccdf0,#5a4a8a); }

  /* ---------- Section header ---------- */
  .section{ margin-bottom:36px; }
  .section-head{
    display:flex; align-items:center; justify-content:space-between;
    border-bottom:2.5px solid var(--ink);
    padding-bottom:8px;
    margin-bottom:18px;
  }
  .section-head h2{
    font-size:20px;
    display:flex; align-items:center; gap:10px;
  }
  .section-head h2::before{
    content:"";
    width:7px; height:20px;
    background:var(--red);
    display:inline-block;
    border-radius:2px;
  }
  .section-head .more{ font-size:12.5px; color:var(--ink-soft); font-weight:600; }
  .section-head .more:hover{ color:var(--red); }

  .card-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
  }
  @media (max-width:900px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:480px){ .card-grid{ grid-template-columns:1fr; } }

  .card .thumb{
    aspect-ratio:4/3;
    border-radius:4px;
    overflow:hidden;
    margin-bottom:10px;
  }
  .card h3{ font-size:15.5px; margin-bottom:6px; }
  .card p{ font-size:13px; color:var(--ink-soft); }

  /* ---------- Sidebar ---------- */
  .sidebar-block{
    background:var(--card);
    border:1px solid var(--rule);
    border-radius:6px;
    padding:20px;
    margin-bottom:24px;
  }
  .sidebar-block h2{
    font-size:17px;
    padding-bottom:10px;
    margin-bottom:14px;
    border-bottom:2px solid var(--ink);
  }
  .popular-item{
    display:flex; gap:12px;
    padding:10px 0;
    border-bottom:1px dashed var(--rule);
    align-items:flex-start;
  }
  .popular-item:last-child{ border-bottom:none; }
  .popular-item .num{
    font-family:'Noto Serif Bengali',serif;
    font-size:22px;
    font-weight:900;
    color:var(--rule);
    width:26px;
    flex-shrink:0;
    line-height:1;
  }
  .popular-item h4{ font-size:14px; font-weight:600; line-height:1.4; }
  .popular-item h4:hover{ color:var(--red); }

  .ad-slot{
    background:repeating-linear-gradient(45deg,#F0EBE0,#F0EBE0 10px,#E9E2D2 10px,#E9E2D2 20px);
    border:1px dashed var(--rule);
    border-radius:6px;
    height:250px;
    display:flex; align-items:center; justify-content:center;
    color:var(--ink-soft);
    font-size:12.5px;
    margin-bottom:24px;
  }

  .weather-card{
    background:linear-gradient(135deg,var(--red),var(--red-deep));
    color:#fff;
    border-radius:6px;
    padding:20px;
    margin-bottom:24px;
  }
  .weather-card .city{ font-size:13px; opacity:.85; margin-bottom:4px; }
  .weather-card .temp{ font-family:'Noto Serif Bengali',serif; font-size:38px; font-weight:700; }
  .weather-card .desc{ font-size:13px; opacity:.9; }

  /* ---------- Opinion strip ---------- */
  .opinion{
    background:#F1EADC;
    border-top:1px solid var(--rule);
    border-bottom:1px solid var(--rule);
    padding:34px 0;
    margin-bottom:36px;
  }
  .opinion-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
  }
  @media (max-width:800px){ .opinion-grid{ grid-template-columns:1fr; } }
  .opinion-card h3{ font-size:16px; margin-bottom:8px; }
  .opinion-card p{ font-size:13.5px; color:var(--ink-soft); margin-bottom:10px; }
  .byline{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink-soft); }
  .byline .dot{ width:28px; height:28px; border-radius:50%; background:var(--gold); flex-shrink:0; }

  /* ---------- Footer ---------- */
  footer{
    background:var(--ink);
    color:#C9C3B6;
    padding:44px 0 24px;
    font-size:13.5px;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:28px;
    margin-bottom:30px;
  }
  @media (max-width:700px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
  footer h4{
    color:#fff; font-family:'Hind Siliguri',sans-serif;
    font-size:14px; margin-bottom:12px; font-weight:600;
  }
  footer .flogo{ font-family:'Tiro Bangla',serif; font-size:26px; color:#fff; margin-bottom:10px; }
  footer .flogo span{ color:var(--red); }
  footer p{ opacity:.75; margin-bottom:14px; line-height:1.7; }
  footer ul{ list-style:none; }
  footer li{ margin-bottom:8px; opacity:.85; }
  footer li:hover{ opacity:1; text-decoration:underline; }
  .footer-bottom{
    border-top:1px solid #38352E;
    padding-top:18px;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    opacity:.65; font-size:12.5px;
  }

  .skip-link{
    position:absolute; left:-999px; top:0;
    background:var(--red); color:#fff; padding:10px 16px; z-index:100;
  }
  .skip-link:focus{ left:10px; top:10px; }
  a:focus-visible, button:focus-visible{
    outline:2.5px solid var(--gold); outline-offset:2px;
  }
  /* =========================
   Khulna Dropdown
========================= */

.khulna-nav {
    margin-top: 15px;
    margin-bottom: 20px;
}

.khulna-dropdown {
    position: relative;
    display: inline-block;
}

.khulna-dropdown-btn {
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #222222;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.khulna-dropdown-btn span {
    font-size: 10px;
    margin-left: 6px;
}

.khulna-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.khulna-dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #222222;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #eeeeee;
}

.khulna-dropdown-menu a:last-child {
    border-bottom: none;
}

.khulna-dropdown-menu a:hover {
    background: #f5f5f5;
    color: #d00000;
}

.khulna-dropdown:hover .khulna-dropdown-menu {
    display: block;
}
  
/* WordPress integration additions */
.custom-logo{max-height:80px;width:auto}.logo .custom-logo-link{display:block}.logo .custom-logo-link img{max-height:80px;width:auto}.search-box input{border:0;background:transparent;outline:0;font:inherit;color:inherit;width:180px}.sidebar-widget{background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:20px;margin-bottom:24px}.sidebar-widget h2{font-size:17px;padding-bottom:10px;margin-bottom:14px;border-bottom:2px solid var(--ink)}.ph-default{background:linear-gradient(135deg,#ded6c8,#b9a58b);height:100%;min-height:120px}.card .thumb img,.hero-main .thumb img,.side-story .thumb img{width:100%;height:100%;object-fit:cover}.single-content h1{font-size:36px;margin:8px 0 12px}.single-featured{margin:24px 0}.single-featured img{width:100%;height:auto;border-radius:4px}.entry-content{font-size:17px;line-height:1.9;margin-top:24px}.entry-content img{height:auto}.entry-content p{margin-bottom:18px}.entry-content a{color:var(--red);text-decoration:underline}.navigation.pagination{margin-top:28px}.nav-links{display:flex;gap:8px;flex-wrap:wrap}.nav-links a,.nav-links span{padding:8px 12px;border:1px solid var(--rule);border-radius:4px}.nav-links .current{background:var(--red);color:#fff}.navbar .menu{display:flex;align-items:stretch;list-style:none;margin:0;padding:0}.navbar .menu-item a{display:block}.navbar .menu-item.current-menu-item>a,.navbar .menu-item.current_page_item>a{background:var(--red-deep);border-bottom-color:var(--gold)}.utility .menu{display:flex;gap:16px;list-style:none;margin:0;padding:0}.utility .menu a{opacity:.85}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wp-block-image img{max-width:100%}@media(max-width:640px){.masthead .wrap{gap:15px}.logo{font-size:34px}.search-box{min-width:0;padding:8px 12px}.search-box input{width:120px}.single-content h1{font-size:28px}}
