/* =========================================================
   Tabyeen theme – modern editorial design system
   Colours come from the admin panel via --tb-main/second/third
   ========================================================= */
:root{
  --tb-accent:#c9a24b;
  --tb-ink:#101828;
  --tb-text:#344054;
  --tb-muted:#667085;
  --tb-line:#e7eaf0;
  --tb-bg:#f6f7fa;
  --tb-card:#fff;
  --tb-r:16px;
  --tb-r-sm:10px;
  --tb-sh:0 1px 2px rgba(16,24,40,.06),0 4px 16px rgba(16,24,40,.05);
  --tb-sh-lg:0 10px 30px rgba(16,24,40,.14);
  --tb-ease:cubic-bezier(.2,.7,.2,1);
}
html{scroll-behavior:smooth}
body.tb{background:var(--tb-bg);color:var(--tb-text);font-size:1rem;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.tb *{line-height:inherit}
.tb img{max-width:100%;height:auto;width:auto;display:block}
.tb a{color:inherit;text-decoration:none;transition:color .2s,background-color .2s,opacity .2s}
.tb h1,.tb h2,.tb h3,.tb h4{color:var(--tb-ink);font-weight:800;line-height:1.45;margin:0}
.tb :focus-visible{outline:3px solid var(--tb-accent);outline-offset:2px;border-radius:6px}
.tb ul{list-style:none;margin:0;padding:0}
.tb-skip{position:absolute;inset-inline-start:1rem;top:-60px;background:var(--tb-main);color:#fff;padding:.6rem 1rem;border-radius:8px;z-index:2000}
.tb-skip:focus{top:1rem;color:#fff}

/* legacy helpers kept for inner pages */
.primery-background,.mclr,.button-background,.topbar{background:var(--tb-main) !important;color:#fff}
.tb .btn{border-radius:999px;font-weight:700;padding:.55rem 1.3rem;border:0}
.tb .btn.topbar,.tb .btn-success{background:var(--tb-main) !important;color:#fff}
.tb .btn-info{background:var(--tb-main);color:#fff}
.tb .form-control,.tb .form-select{border:1px solid var(--tb-line);border-radius:12px;padding:.7rem 1rem;background:#fff}
.tb .form-control:focus{border-color:var(--tb-main);box-shadow:0 0 0 4px color-mix(in srgb,var(--tb-main) 18%,transparent)}

/* ---------- top bar ---------- */
.tb-topbar{background:var(--tb-third);color:#cbd5e1;font-size:.82rem}
.tb-topbar__in{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:40px}
.tb-toplinks{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.tb-toplinks a{color:#cbd5e1}
.tb-toplinks a:hover{color:var(--tb-accent)}
.tb-toplinks .dropdown-menu{min-width:7rem}
.tb-toplinks .dropdown-item{color:var(--tb-ink)}
.tb-social{display:flex;gap:.35rem}
.tb-social a{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:#cbd5e1;font-size:.9rem}
.tb-social a:hover{background:rgba(255,255,255,.12);color:#fff;transform:translateY(-2px)}

/* ---------- header / nav ---------- */
.tb-header{position:sticky;top:0;z-index:1030;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--tb-line);transition:box-shadow .25s}
.tb-header.is-stuck{box-shadow:0 8px 24px rgba(16,24,40,.08)}
.tb-nav{padding:.65rem 0;gap:1rem;flex-wrap:wrap}
.tb-logo img{height:54px;width:auto;object-fit:contain;transition:transform .3s var(--tb-ease)}
.tb-logo:hover img{transform:scale(1.04)}
.tb-actions{display:flex;gap:.5rem;margin-inline-start:auto}
.tb-iconbtn{width:42px;height:42px;border-radius:50%;border:1px solid var(--tb-line);background:#fff;color:var(--tb-ink);display:grid;place-items:center;cursor:pointer;transition:.2s}
.tb-iconbtn:hover{background:var(--tb-main);border-color:var(--tb-main);color:#fff}
.tb-menu{gap:.15rem;align-items:center}
.tb-menu>.nav-item{position:relative;padding:0;border:0}
.tb-menu .nav-link{display:block;padding:.65rem .95rem;font-weight:700;font-size:.95rem;color:var(--tb-ink);border-radius:999px;position:relative}
.tb-menu>.nav-item>.dropdown-item,.tb-menu>.nav-item>div{padding:0;background:none;display:flex;align-items:center}
.tb-menu>.nav-item>.nav-link:hover,.tb-menu>.nav-item>div:hover .nav-link{background:color-mix(in srgb,var(--tb-main) 10%,transparent);color:var(--tb-main) !important}
.tb-menu .dropdown-toggle::after{display:none}
.tb-menu>.dropdown>div::after{content:"";width:6px;height:6px;border:solid var(--tb-muted);border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);margin-inline-end:.5rem}
.tb-menu .dropdown-menu{border:1px solid var(--tb-line);border-radius:var(--tb-r-sm);box-shadow:var(--tb-sh-lg);padding:.5rem;min-width:200px;margin-top:0;animation:tbFade .18s var(--tb-ease)}
.tb-menu .dropdown-menu .nav-item{padding:0;border:0}
.tb-menu .dropdown-menu .nav-link{border-radius:8px;font-weight:600;font-size:.9rem;white-space:nowrap}
.tb-menu .dropdown-menu .nav-link:hover{background:var(--tb-bg);color:var(--tb-main)}
.tb-menu .dropdown-submenu{inset-inline-start:100%;top:0}
@media(min-width:992px){
  .tb-menu .dropdown:hover>.dropdown-menu{display:block}
  .tb-menu .dropdown-menu .dropdown{position:relative}
}
@media(max-width:991px){
  .tb-menu{padding:.75rem 0;align-items:stretch}
  .tb-menu .dropdown-menu{position:static;box-shadow:none;border:0;background:var(--tb-bg)}
  .tb-menu .dropdown:hover>.dropdown-menu{display:none}
  .tb-menu .dropdown-menu.show{display:block}
}
.tb-searchbox{display:none;border-top:1px solid var(--tb-line);background:#fff;padding:.75rem 0}
.tb-searchbox.d-block{display:block}

/* ---------- chips / meta ---------- */
.tb-chip{display:inline-block;background:var(--tb-main);color:#fff !important;font-size:.74rem;font-weight:700;padding:.18rem .75rem;border-radius:999px;line-height:1.6}
.tb-chip:hover{filter:brightness(.85)}
.tb-card__meta{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--tb-muted)}

/* ---------- hero ---------- */
.tb-hero{padding:1.75rem 0 .5rem}
.tb-hero__grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.tb-hero__main{position:relative;border-radius:22px;overflow:hidden;min-height:520px;background:var(--tb-third);box-shadow:var(--tb-sh-lg);isolation:isolate}
.tb-hero__slider{width:100%;min-width:0;height:520px;border-radius:22px;overflow:hidden;background:var(--tb-third);box-shadow:var(--tb-sh-lg)}
.tb-hero__slider .swiper-wrapper,.tb-hero__slider .swiper-slide{height:100%}
.tb-hero__slider .tb-hero__main{height:100%;min-height:0;border-radius:0;box-shadow:none}
.tb-hero__media{position:absolute;inset:0;z-index:-2}
.tb-hero__media img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--tb-ease)}
.tb-hero__main:hover .tb-hero__media img{transform:scale(1.04)}
.tb-hero__main::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,12,20,0) 25%,rgba(8,12,20,.9) 100%)}
.tb-hero__body{position:absolute;inset-inline:0;bottom:0;padding:2rem 2rem 4.25rem;display:flex;flex-direction:column;gap:.75rem;align-items:flex-start;color:#fff}
.tb-hero__title{font-size:clamp(1.5rem,2.6vw,2.2rem);color:#fff}
.tb-hero__title a:hover{color:var(--tb-accent)}
.tb-hero__desc{color:#e2e8f0;margin:0;max-width:62ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tb-hero__body .tb-card__meta{color:#cbd5e1}
.tb-hero__controls{position:absolute;inset-inline-end:1.5rem;bottom:1.25rem;z-index:5;display:flex;align-items:center;gap:.5rem;direction:ltr}
.tb-hero__pagination{position:static;width:auto!important;display:flex;align-items:center;gap:.3rem;margin-inline-end:.35rem;transform:none}
.tb-hero__pagination .swiper-pagination-bullet{width:7px;height:7px;margin:0!important;background:#fff;opacity:.55;transition:width .25s var(--tb-ease),opacity .25s}
.tb-hero__pagination .swiper-pagination-bullet-active{width:22px;border-radius:999px;opacity:1;background:var(--tb-accent)}
.tb-hero__arrow{width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(10px);cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.tb-hero__arrow:hover{background:var(--tb-main);border-color:var(--tb-main);transform:translateY(-2px)}
.tb-hero__side{display:flex;flex-direction:column;gap:1.25rem}
.tb-issue{display:flex;gap:1rem;align-items:center;background:var(--tb-card);border:1px solid var(--tb-line);border-radius:var(--tb-r);padding:.85rem;box-shadow:var(--tb-sh);transition:.25s var(--tb-ease)}
.tb-issue:hover{transform:translateY(-3px);box-shadow:var(--tb-sh-lg)}
.tb-issue img{width:84px;aspect-ratio:3/4;object-fit:cover;border-radius:10px;flex:none}
.tb-issue__body{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start;color:var(--tb-ink)}
.tb-tabs{background:var(--tb-card);border:1px solid var(--tb-line);border-radius:var(--tb-r);box-shadow:var(--tb-sh);overflow:hidden}
.tb-tabs .nav-tabs{border:0;background:var(--tb-bg);padding:.4rem;gap:.25rem;flex-wrap:nowrap}
.tb-tabs .nav-link{flex:1;border:0 !important;border-radius:10px;background:transparent;color:var(--tb-muted);font-weight:700;padding:.55rem;font-size:.9rem}
.tb-tabs .nav-link.active{background:#fff;color:var(--tb-main);box-shadow:var(--tb-sh)}
.tb-tabs .tab-content{padding:.5rem 1rem 1rem;max-height:560px;overflow:auto}
.tb-mini{display:flex;gap:.8rem;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--tb-line);font-weight:600;font-size:.92rem;color:var(--tb-ink)}
.tb-mini:last-child{border:0}
.tb-mini img{width:76px;height:56px;object-fit:cover;border-radius:10px;flex:none}
.tb-mini:hover{color:var(--tb-main)}
@media(max-width:991px){
  .tb-hero__grid{grid-template-columns:1fr}
  .tb-hero__slider{height:420px}
  .tb-hero__slider .tb-hero__main{min-height:0}
}
@media(max-width:575px){
  .tb-hero__slider{height:380px}
  .tb-hero__body{padding:1.25rem 1.25rem 4.25rem}
  .tb-hero__controls{inset-inline-end:1.25rem;bottom:1rem}
  .tb-hero__arrow{width:34px;height:34px}
}

/* ---------- sections ---------- */
.tb-section{padding:2.25rem 0 .5rem}
.tb-section__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.tb-section__title{font-size:1.4rem;display:flex;align-items:center;gap:.75rem}
.tb-section__title::before{content:"";width:6px;height:1.6rem;border-radius:6px;background:linear-gradient(var(--tb-main),var(--tb-accent))}
.tb-section__title a:hover{color:var(--tb-main)}
.tb-section__more{font-size:.85rem;font-weight:700;color:var(--tb-main);display:inline-flex;gap:.4rem;align-items:center;padding:.35rem .9rem;border-radius:999px;background:color-mix(in srgb,var(--tb-main) 10%,transparent)}
.tb-section__more:hover{background:var(--tb-main);color:#fff}
.tb-grid{display:grid;gap:1.25rem}
.tb-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tb-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tb-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tb-lead>.tb-grid--3,.tb-feature>.tb-grid--3{margin-top:1.25rem}
.tb-feature>.tb-card--wide{margin-bottom:0}
@media(max-width:991px){.tb-grid--3,.tb-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.tb-grid--2,.tb-grid--3,.tb-grid--4{grid-template-columns:1fr}}
.tb-promo{padding-top:1.5rem}
.tb-promo img{width:100%;border-radius:var(--tb-r)}

/* ---------- cards ---------- */
.tb-card{position:relative;background:var(--tb-card);border:1px solid var(--tb-line);border-radius:var(--tb-r);overflow:hidden;box-shadow:var(--tb-sh);display:flex;flex-direction:column;transition:transform .3s var(--tb-ease),box-shadow .3s var(--tb-ease)}
.tb-card:hover{transform:translateY(-4px);box-shadow:var(--tb-sh-lg)}
.tb-card__media{display:block;overflow:hidden;aspect-ratio:16/10;background:var(--tb-line)}
.tb-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--tb-ease)}
.tb-card:hover .tb-card__media img{transform:scale(1.06)}
.tb-card__body{padding:1rem 1.1rem 1.15rem;display:flex;flex-direction:column;gap:.55rem;align-items:flex-start;flex:1}
.tb-card__title{font-size:1.02rem;font-weight:700}
.tb-card__title a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tb-card__title a:hover{color:var(--tb-main)}
.tb-card__desc{margin:0;font-size:.9rem;color:var(--tb-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tb-card .tb-card__meta{margin-top:auto}
/* overlay */
.tb-card--o{border:0;min-height:300px;background:var(--tb-third);isolation:isolate}
.tb-card--o .tb-card__media{position:absolute;inset:0;aspect-ratio:auto;z-index:-2}
.tb-card--o::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,12,20,0) 30%,rgba(8,12,20,.9) 100%)}
.tb-card--o .tb-card__body{margin-top:auto;justify-content:flex-end;flex:none;color:#fff}
.tb-card--o .tb-card__title{color:#fff}
.tb-card--o .tb-card__title a:hover{color:var(--tb-accent)}
.tb-card--o .tb-card__meta{color:#cbd5e1}
.tb-card--o.big{min-height:380px}
.tb-card--o.big .tb-card__title{font-size:1.35rem}
/* wide feature */
.tb-card--wide{flex-direction:row;min-height:300px}
.tb-card--wide .tb-card__media{flex:1.2;aspect-ratio:auto}
.tb-card--wide .tb-card__body{flex:1;justify-content:center;padding:1.75rem}
.tb-card--wide .tb-card__title{font-size:1.5rem}
@media(max-width:767px){.tb-card--wide{flex-direction:column}.tb-card--wide .tb-card__media{aspect-ratio:16/10}}
/* carousel */
.swiper-two{padding-bottom:.5rem}
.swiper-two .swiper-slide{height:auto}
.swiper-two .tb-card{height:100%}

/* ---------- magazines (centre) ---------- */
.tb-issue-card{background:var(--tb-card);border:1px solid var(--tb-line);border-radius:var(--tb-r);overflow:hidden;box-shadow:var(--tb-sh);transition:.3s var(--tb-ease);display:block}
.tb-issue-card:hover{transform:translateY(-4px);box-shadow:var(--tb-sh-lg)}
.tb-issue-card img{width:100%;aspect-ratio:3/4;object-fit:cover}
.tb-issue-card span{display:block;padding:.9rem 1rem;font-weight:700;color:var(--tb-ink)}

/* ---------- inner page head ---------- */
.tb-pagehead{background:linear-gradient(135deg,var(--tb-third),var(--tb-main));color:#fff;padding:2.5rem 0 2.25rem;position:relative;overflow:hidden}
.tb-pagehead::after{content:"";position:absolute;inset-inline-end:-80px;top:-80px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(201,162,75,.35),transparent 70%)}
.tb-pagehead__title{color:#fff;font-size:clamp(1.5rem,3vw,2.3rem);position:relative;z-index:1}
.tb-pagehead--post .tb-pagehead__title{font-size:clamp(1.35rem,2.6vw,2rem);max-width:60ch}
.tb-crumbs{display:flex;align-items:center;gap:.6rem;font-size:.85rem;color:#cbd5e1;margin-bottom:.6rem;position:relative;z-index:1}
.tb-crumbs a:hover{color:var(--tb-accent)}
.tb-section--list{padding-top:2rem}
.tb-pager{display:flex;justify-content:center;margin:2.25rem 0 .5rem}
.tb .pagination{gap:.3rem;flex-wrap:wrap;justify-content:center}
.tb .page-link{border-radius:10px !important;border:1px solid var(--tb-line);color:var(--tb-ink);font-weight:600;min-width:40px;text-align:center}
.tb .page-item.active .page-link{background:var(--tb-main);border-color:var(--tb-main);color:#fff}
.tb .page-link:hover{background:var(--tb-bg);color:var(--tb-main)}
.tb-pager nav>div:first-child{display:none}
.tb-panel{background:#fff;border:1px solid var(--tb-line);border-radius:var(--tb-r);box-shadow:var(--tb-sh)}
.tb-prose{padding:2rem;font-size:1.05rem;line-height:2}
.tb-prose img{border-radius:12px;margin:1rem auto}

/* ---------- article ---------- */
.tb-postwrap{margin-top:-1.25rem;position:relative;z-index:2}
.tb-post{padding:1.5rem 1.75rem 2rem;overflow:hidden}
.tb-post>div{width:100%}
.tb-post article{font-size:1.1rem;line-height:2.05;color:#1d2939}
.tb-post article p{padding:0;margin-bottom:1.15rem}
.tb-post article img{border-radius:12px;margin:1rem auto;height:auto}
.tb-post blockquote{border-inline-start:4px solid var(--tb-accent);background:var(--tb-bg);padding:1rem 1.25rem;border-radius:12px;font-size:1.05rem;margin:1rem 0;color:var(--tb-text)}
.tb-post .postinfo,.tb-post .postinfo a{color:var(--tb-muted);font-size:.85rem}
.tb-post .sociallinksadd a{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--tb-bg);color:var(--tb-ink)}
.tb-post .sociallinksadd a:hover{background:var(--tb-main);color:#fff}
.tb-post .sociallinksadd .icon-hover{margin:0 .2rem !important}
.tb-post a{color:var(--tb-main)}
.tb-post figure img{width:100%}
@media(max-width:575px){.tb-post{padding:1rem}.tb-post article{font-size:1.02rem}}

/* contact */
.tb-contact{background:transparent !important;box-shadow:none !important;border:0 !important}
.tb-contact .card{border:1px solid var(--tb-line);border-radius:var(--tb-r);box-shadow:var(--tb-sh);overflow:hidden}
.tb-contact .card-header{margin:0 !important;padding:1.25rem 0 !important;border:0}
.tb-contact .card-header h3{color:#fff;margin:0;font-size:1.3rem}
.tb-contact .card-body{padding:1.75rem}
.tb-contact .form-group{margin-bottom:1rem}
.tb-contact strong{display:block;margin-bottom:.35rem;color:var(--tb-ink);font-size:.9rem}

/* ---------- footer ---------- */
.tb-footer{margin-top:4rem;background:var(--tb-third);color:#cbd5e1;position:relative}
.tb-footer::before{content:"";position:absolute;inset-inline:0;top:0;height:4px;background:linear-gradient(90deg,var(--tb-main),var(--tb-accent))}
.tb-footer a{color:#cbd5e1}
.tb-footer a:hover{color:var(--tb-accent)}
.tb-footer__top{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;flex-wrap:wrap;padding:3rem 0 2rem;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:2.5rem}
.tb-footer__logo img{height:84px;width:auto}
.tb-social--lg a{width:42px;height:42px;background:rgba(255,255,255,.08);font-size:1.05rem}
.tb-social--lg a:hover{background:var(--tb-accent);color:var(--tb-third)}
.tb-footer__cols{padding-bottom:2.5rem}
.tb-footer__about{line-height:2;font-size:.95rem}
.tb-footer__parent img{width:200px;margin-top:1.5rem;opacity:.9}
.tb-footer__title{color:#fff;font-size:1.05rem;margin-bottom:1.1rem;padding-bottom:.7rem;position:relative}
.tb-footer__title::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:42px;height:3px;border-radius:3px;background:var(--tb-accent)}
.tb-footer__list li{padding:.5rem 0;border-bottom:1px dashed rgba(255,255,255,.1);font-size:.93rem}
.tb-footer__tags{display:flex;flex-wrap:wrap;gap:.5rem}
.tb-footer__tags a{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:.25rem .9rem;font-size:.85rem}
.tb-footer__tags a:hover{background:var(--tb-accent);border-color:var(--tb-accent);color:var(--tb-third)}
.tb-footer__bar{background:rgba(0,0,0,.28);padding:1rem 0;font-size:.85rem}
.tb-footer__barin{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.tb-totop{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.1);display:grid;place-items:center}
.tb-totop:hover{background:var(--tb-accent);color:var(--tb-third) !important}

@keyframes tbFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.tb *{transition:none !important;animation:none !important}}
@media print{.tb-topbar,.tb-header,.tb-footer{display:none}}

/* specificity fixes over generic heading rules */
.tb .tb-hero__title,.tb .tb-pagehead__title,.tb .tb-card--o .tb-card__title{color:#fff}
.tb .tb-footer__title{color:#fff}
.tb nav.tb-nav{box-shadow:none;background:transparent}
.tb .tb-logo img{border:0}
