/* ────────────────────────────────────────────────
   THE POPULAR STORY — CUSTOM CSS
   Parent: GeneratePress
   Brand: Primary #03184f  Gold #f3be3e
──────────────────────────────────────────────── */

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Container ── */
.bo-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ── TOP BAR ── */
.tps-topbar {
    background: var(--bo-primary);
    font-size: 12px;
    color: rgba(255,255,255,.65);
    padding: 5px 0;
}
.tps-topbar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tps-topbar__left  { display: flex; gap: 14px; align-items: center; }
.tps-topbar__right { display: flex; gap: 8px;  align-items: center; }
.tps-topbar a      { color: rgba(255,255,255,.65); text-decoration: none; }
.tps-topbar a:hover{ color: var(--bo-secondary); }
.tps-social { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; text-decoration: none; transition: .2s; }
.tps-social:hover { background: var(--bo-secondary); color: var(--bo-primary); }

/* ── HEADER ── */
.tps-header { background: #fff; box-shadow: 0 0 25px rgba(0,0,0,.10); position: sticky; top: 0; z-index: 9990; }
.tps-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

/* Logo */
.tps-logo a { text-decoration: none; display: flex; align-items: center; }
.tps-logo img { height: 48px; width: auto; object-fit: contain; }
.tps-logo__text { line-height: 1.1; }
.tps-logo__pre  { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; color: var(--bo-primary); }
.tps-logo__main { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 22px; color: var(--bo-primary); text-transform: uppercase; letter-spacing: 1px; border-top: 3px solid var(--bo-secondary); padding-top: 2px; }

/* Top nav */
.tps-topnav { display: flex; align-items: center; gap: 4px; }
.tps-topnav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.tps-topnav__list a { color: #545454; font-size: 14px; font-family: 'Playfair Display', Georgia, serif; padding: 8px 12px; text-decoration: none; transition: .2s; }
.tps-topnav__list a:hover { color: var(--bo-primary); }

/* ── BUTTONS ── */
.tps-btn { display: inline-block; padding: 7px 14px; border-radius: 5px; font-size: 13px; font-weight: 700; font-family: 'Playfair Display', Georgia, serif; text-decoration: none; cursor: pointer; border: none; transition: .2s; }
.tps-btn--primary { background: var(--bo-primary); color: #fff; }
.tps-btn--primary:hover { background: #052680; color: #fff; }
.tps-btn--gold { background: var(--bo-secondary); color: var(--bo-primary); }
.tps-btn--gold:hover { background: #e6b400; }
.tps-btn--sm { padding: 5px 10px; font-size: 12px; }

/* Hamburger */
.tps-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.tps-hamburger span { display: block; width: 22px; height: 2px; background: var(--bo-primary); border-radius: 2px; transition: .3s; }
.tps-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tps-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tps-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── CATEGORY BAR ── */
.tps-catbar { background: var(--bo-primary); }
.tps-catbar__inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.tps-catbar__inner::-webkit-scrollbar { display: none; }
.tps-catbar__list { display: flex; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.tps-catbar__list li a { display: block; color: #fff; font-size: 13px; font-family: 'Playfair Display', Georgia, serif; padding: 11px 11px; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; transition: .2s; }
.tps-catbar__list li a:hover,
.tps-catbar__list li.current-cat a { color: var(--bo-secondary); border-bottom-color: var(--bo-secondary); }
.tps-search-toggle { margin-left: auto; background: none; border: none; cursor: pointer; color: #fff; padding: 11px 14px; flex-shrink: 0; transition: .2s; }
.tps-search-toggle:hover { color: var(--bo-secondary); }

/* Search panel */
.tps-search-panel { padding: 0 12px 10px; }
.tps-search-panel input[type="search"] { width: 100%; padding: 8px 14px; font-size: 13px; border-radius: 4px; border: none; outline: none; background: rgba(255,255,255,.15); color: #fff; }
.tps-search-panel input::placeholder { color: rgba(255,255,255,.5); }

/* ── TICKER ── */
.tps-ticker { background: var(--bo-secondary); padding: 6px 0; font-size: 13px; overflow: hidden; }
.tps-ticker__inner { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.tps-ticker__badge { background: var(--bo-primary); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 2px; flex-shrink: 0; }
.tps-ticker__track { overflow: hidden; flex: 1; font-weight: 500; color: var(--bo-primary); white-space: nowrap; }

/* ── SECTION HEADINGS ── */
.tps-section-heading { position: relative; padding-left: 12px; }
.tps-section-heading::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--bo-secondary); }
.tps-section-heading span { display: table; padding: 5px 15px; background: var(--bo-primary); color: #fff; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; text-transform: uppercase; font-size: 18px; }

.tps-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tps-viewall-btn { background: #e8edf8; color: var(--bo-primary); font-size: 14px; padding: 5px 15px; border-radius: 3px; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; transition: .2s; }
.tps-viewall-btn:hover { background: var(--bo-primary); color: #fff; }

/* ── CARD GRID ── */
.tps-card-grid { display: grid; gap: 20px; }
.tps-card-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── POST CARD ── */
.tps-post-card { background: #fff; border-radius: 7px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s; }
.tps-post-card:hover { transform: translateY(-8px); box-shadow: 0 7px 15px rgba(0,0,0,.14); }
.tps-post-card__img-wrap { display: block; position: relative; padding-bottom: 65%; overflow: hidden; background: #e3e3e3; }
.tps-post-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tps-post-card:hover .tps-post-card__img { transform: scale(1.04); }
.tps-post-card__img--placeholder { position: absolute; inset: 0; background: linear-gradient(135deg,#e3e3e3,#d0d0d0); }
.tps-post-card__body { padding: 0 15px 14px; }
.tps-post-card__meta { display: flex; gap: 8px; align-items: center; padding: 10px 0 6px; flex-wrap: wrap; }
.tps-cat-label { font-size: 10px; font-weight: 800; text-transform: uppercase; background: #e8edf8; color: var(--bo-primary); padding: 3px 8px; border-radius: 3px; text-decoration: none; }
.tps-date { font-size: 11px; color: #9ca3af; }
.tps-post-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Playfair Display', Georgia, serif; color: #393939; font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none; transition: color .2s; }
.tps-post-card__title:hover { color: var(--bo-primary); }
.tps-post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: #868686; line-height: 1.55; height: 58px; margin: 8px 0 0; }
.tps-post-card__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 12px; }
.tps-post-card__author { font-size: 12px; color: #9ca3af; }
.tps-post-card__readtime { font-size: 12px; color: #9ca3af; }

/* Cat badge (dark, used in hero) */
.tps-cat-badge { background: var(--bo-secondary); color: var(--bo-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 2px; text-decoration: none; }

/* ── HOMEPAGE SECTION 1 ── */
.tps-section1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.tps-section2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.tps-section2__main { min-width: 0; }
.tps-section-wrap { margin-bottom: 40px; }
.bo-homepage { padding: 30px 0 60px; }

/* ── HERO SLIDER ── */
.tps-hero-slider { position: relative; border-radius: 7px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.18); background: #111; }
.tps-hero-slide { display: none; }
.tps-hero-slide.is-active { display: block; }
.tps-hero-slide a { display: block; text-decoration: none; }
.tps-hero-slide__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tps-hero-slide__placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg,#1a2f6e,#03184f); }
.tps-hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px 36px; }
.tps-hero-slide__badge { display: inline-block; background: var(--bo-primary); color: var(--bo-secondary); font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 18px; padding: 0 10px 2px; margin-bottom: 6px; }
.tps-hero-slide__title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 900; color: #fff; line-height: 1.2; margin: 8px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,.5); text-decoration: none; }
.tps-hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.tps-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); border: none; cursor: pointer; padding: 0; transition: .3s; }
.tps-hero-dot.is-active { width: 22px; border-radius: 4px; background: var(--bo-secondary); }

/* ── TOP STORIES ── */
.tps-top-stories { background: #fff; border-radius: 7px; padding: 15px; box-shadow: 0 4px 20px rgba(0,0,0,.03); position: relative; overflow: hidden; }
.tps-top-stories .tps-section-heading { margin-bottom: 10px; }
.tps-top-stories .tps-viewall-btn { position: absolute; left: 0; bottom: 0; width: 100%; text-align: center; border-radius: 0; background: #ffe8e8; }

/* Mini card (top-stories, sidebar) */
.tps-mini-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.tps-mini-card__thumb { display: block; width: 120px; height: 100px; flex-shrink: 0; border-radius: 5px; overflow: hidden; background: #e3e3e3; }
.tps-mini-card__img { width: 100%; height: 100%; object-fit: cover; }
.tps-mini-card__body { flex: 1; min-width: 0; }
.tps-mini-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Playfair Display', Georgia, serif; font-size: 14px; font-weight: 600; color: #393939; text-decoration: none; line-height: 1.25; }
.tps-mini-card__title:hover { color: var(--bo-primary); }
.tps-mini-card__date { font-size: 12px; color: #9ca3af; margin: 4px 0 0; }

/* ── SUCCESS STORIES GRID ── */
.tps-success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tps-success-grid__list { display: flex; flex-direction: column; gap: 12px; }

/* ── SINGLE ARTICLE ── */
.tps-single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 30px 0 60px; }
.tps-article__hero img { width: 100%; border-radius: 7px 7px 0 0; max-height: 500px; object-fit: cover; }
.tps-article { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.tps-article__body { padding: 30px 36px 40px; }
.tps-article__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.tps-article__date { font-size: 12px; color: #9ca3af; }
.tps-article__readtime { font-size: 12px; color: #9ca3af; }
.tps-article__title { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; font-weight: 900; color: #1a1a1a; line-height: 1.25; margin: 0 0 16px; }
.tps-article__lead { font-size: 17px; color: #555; line-height: 1.75; font-style: italic; border-left: 4px solid var(--bo-secondary); padding-left: 16px; margin-bottom: 28px; }
.tps-article__author { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding: 14px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.tps-author__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bo-primary); color: var(--bo-secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.tps-article__content { font-size: 15px; color: #444; line-height: 1.85; }
.tps-article__content p { margin-bottom: 20px; }
.tps-article__tags .tps-tags a { display: inline-block; background: #e8edf8; color: var(--bo-primary); font-size: 12px; padding: 4px 12px; border-radius: 20px; margin: 4px; text-decoration: none; }
.tps-share { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.tps-share > span { font-size: 13px; color: #555; font-weight: 600; }
.tps-share__btn { display: inline-block; background: var(--bo-primary); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 4px; text-decoration: none; transition: .2s; }
.tps-share__btn:hover { background: #052680; }
.tps-adjacent { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.tps-adjacent a { font-family: 'Playfair Display', Georgia, serif; font-size: 13px; color: var(--bo-primary); text-decoration: none; }

/* ── SIDEBAR ── */
.tps-sidebar > * { margin-bottom: 24px; }
.tps-widget { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.04); margin-bottom: 24px; }
.tps-widget__title { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 900; color: var(--bo-primary); text-transform: uppercase; margin: 0 0 16px; border-left: 4px solid var(--bo-secondary); padding-left: 10px; }
.tps-widget__cats { display: flex; flex-direction: column; }
.tps-widget__cat-link { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #393939; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; transition: .15s; }
.tps-widget__cat-link:hover { color: var(--bo-primary); padding-left: 4px; }
.tps-widget__cat-count { font-size: 12px; color: #9ca3af; }
.tps-widget--cta { background: var(--bo-primary); color: #fff; }
.tps-widget--cta h3 { color: var(--bo-secondary); font-family: 'Playfair Display', Georgia, serif; font-size: 16px; margin: 0 0 6px; }
.tps-widget--cta p { font-size: 12px; color: rgba(255,255,255,.65); margin: 0 0 12px; }
.tps-widget--cta input[type="email"] { width: 100%; padding: 9px 12px; border-radius: 4px; border: none; font-size: 13px; margin-bottom: 8px; outline: none; box-sizing: border-box; }
.tps-widget--cta button { width: 100%; background: var(--bo-secondary); color: var(--bo-primary); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px; border-radius: 4px; border: none; cursor: pointer; font-family: 'Playfair Display', Georgia, serif; }

/* ── SIDEBAR carousel ── */
.tps-recent-carousel { border-radius: 5px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.tps-recent-slide__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tps-upcoming-cta { background: var(--bo-primary); border-radius: 5px; padding: 20px 18px; }
.tps-upcoming-cta__label { color: var(--bo-secondary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 5px; }
.tps-upcoming-cta h3 { color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 900; margin: 0 0 10px; }
.tps-upcoming-cta p { color: rgba(255,255,255,.75); font-size: 12px; line-height: 1.6; margin: 0 0 14px; }

/* ── CATEGORY PAGE ── */
.tps-cat-hero { padding: 40px 0 30px; }
.tps-cat-hero__label { color: var(--bo-secondary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.tps-cat-hero__title { font-family: 'Playfair Display', Georgia, serif; color: #fff; font-size: 34px; font-weight: 900; margin: 0; }
.tps-cat-hero__desc { color: rgba(255,255,255,.65); font-size: 14px; margin: 8px 0 0; }
.tps-archive { padding: 30px 0 60px; }
.tps-archive__layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.tps-archive__main { min-width: 0; }

/* ── BREADCRUMB ── */
.tps-breadcrumb { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 10px 0; font-size: 12px; color: #9ca3af; }
.tps-breadcrumb a { color: #9ca3af; text-decoration: none; }
.tps-breadcrumb a:hover { color: var(--bo-primary); }

/* ── PAGE ── */
.tps-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 30px 0 60px; }
.tps-page-main { min-width: 0; }

/* ── 404 ── */
.tps-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.tps-404__num { font-size: 80px; font-weight: 900; color: var(--bo-primary); font-family: 'Playfair Display', Georgia, serif; margin: 0; }
.tps-404__msg { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; color: #393939; margin: 8px 0 16px; }

/* ── NEWSLETTER STRIP ── */
.tps-newsletter { background: var(--bo-secondary); padding: 24px 0; }
.tps-newsletter__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.tps-newsletter__copy h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 900; color: var(--bo-primary); margin: 0 0 4px; }
.tps-newsletter__copy p  { font-size: 13px; color: var(--bo-primary); margin: 0; }
.tps-newsletter__form { display: flex; gap: 8px; flex: 1; max-width: 400px; }
.tps-newsletter__form input { flex: 1; padding: 10px 14px; border-radius: 4px; border: none; font-size: 13px; outline: none; }
.tps-newsletter__form button { background: var(--bo-primary); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 4px; border: none; cursor: pointer; font-family: 'Playfair Display', Georgia, serif; white-space: nowrap; }

/* ── FOOTER ── */
.tps-footer { background: var(--bo-primary); }
.tps-footer__main { padding: 40px 0 20px; }
.tps-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.tps-footer__brand { }
.tps-footer__brand img { height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 16px; }
.tps-footer__logo-text { line-height: 1.1; }
.tps-footer__logo-pre  { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.7); }
.tps-footer__logo-main { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 22px; color: #fff; text-transform: uppercase; border-top: 3px solid var(--bo-secondary); padding-top: 2px; margin-bottom: 16px; }
.tps-footer__about { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.tps-footer__social { display: flex; gap: 10px; }
.tps-footer__social-link { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: .2s; }
.tps-footer__social-link:hover { background: var(--bo-secondary); color: var(--bo-primary); }
.tps-footer__heading { color: var(--bo-secondary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.tps-footer__links { list-style: none; padding: 0; margin: 0; }
.tps-footer__links li { margin-bottom: 8px; }
.tps-footer__links a { color: rgba(255,255,255,.65); font-size: 13px; text-decoration: none; transition: .2s; }
.tps-footer__links a:hover { color: var(--bo-secondary); }
.tps-footer__contact { list-style: none; padding: 0; margin: 0; }
.tps-footer__contact li { color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.7; }
.tps-footer__contact a { color: rgba(255,255,255,.65); text-decoration: none; }
.tps-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.tps-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tps-footer__bottom p { color: rgba(255,255,255,.4); font-size: 12px; margin: 0; }

/* ── PAGINATION ── */
.tps-pagination { padding: 30px 0 0; }
.tps-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tps-pagination .page-numbers { padding: 8px 14px; border-radius: 4px; background: #e8edf8; color: var(--bo-primary); text-decoration: none; font-weight: 600; font-size: 14px; transition: .2s; }
.tps-pagination .page-numbers.current,
.tps-pagination .page-numbers:hover { background: var(--bo-primary); color: #fff; }
