/* Stories / Blogger section */
.story-card { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; background: #fff; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.story-card .story-cover { height: 210px; object-fit: cover; width: 100%; background: #e9ecef; transition: transform .45s ease; }
.story-card:hover .story-cover { transform: scale(1.04); }
.story-card > a, .story-cover-wrap { overflow: hidden; }
.story-card .card-title { font-size: 1.12rem; line-height: 1.3; }
.story-card .story-cover-placeholder { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; background: linear-gradient(135deg, var(--tc-teal-dark), var(--tc-teal)); }
.story-card .card-title a { color: #212529; text-decoration: none; }
.story-card .card-title a:hover { color: var(--tc-teal); }
.story-meta { font-size: .85rem; color: #6c757d; }
.story-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.stories-hero { background: linear-gradient(135deg, var(--tc-teal-dark) 0%, var(--tc-teal) 100%); color: #fff; border-radius: 18px; }
.stories-hero .form-control { border: 0; }

.featured-story { border-radius: 18px; overflow: hidden; position: relative; min-height: 340px; background: #212529; color: #fff; display: block; text-decoration: none; }
.featured-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s; }
.featured-story:hover img { opacity: .45; }
.featured-story .featured-body { position: relative; padding: 2.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.72) 100%); }
.featured-story h2, .featured-story .featured-body { color: #fff; }
.featured-story h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.featured-story img { opacity: .85; }
.featured-story:hover img { opacity: .75; }
@media (max-width: 575.98px) { .featured-story .featured-body { padding: 1.4rem; min-height: 280px; } .featured-story { min-height: 280px; } }

.article-hero { border-radius: 18px; max-height: 480px; width: 100%; object-fit: cover; }
.article-body { font-size: 1.15rem; line-height: 1.85; color: #2b2f33; }
.article-body p { margin-bottom: 1.3rem; }
.article-gallery img { border-radius: 12px; width: 100%; height: 220px; object-fit: cover; cursor: zoom-in; transition: transform .2s; }
.article-gallery img:hover { transform: scale(1.02); }

.provider-chip { border-radius: 14px; border: 1px solid #e9ecef; background: #fff; transition: box-shadow .2s, border-color .2s; }
.provider-chip:hover { border-color: var(--tc-teal); box-shadow: 0 4px 14px rgba(var(--sec-rgb), .12); }
.provider-chip .icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(var(--sec-rgb), .1); color: var(--tc-teal); font-size: 1.2rem; }

.profile-cover { height: 240px; object-fit: cover; width: 100%; }
.profile-cover-placeholder { height: 200px; background: linear-gradient(135deg, var(--tc-teal-dark), var(--tc-teal)); }
.profile-avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.stat-tile { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.stat-tile .stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }

.photo-thumb { position: relative; }
.photo-thumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }
.photo-thumb form { position: absolute; top: 6px; right: 6px; }
.upload-preview img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.tag-select { max-height: 180px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 10px; padding: .5rem .75rem; }

/* ---- Story events (days / stops) ---- */
.tc-event-num { width: 32px; height: 32px; border-radius: 10px; background: var(--tc-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.tc-event-row { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--tc-line); border-radius: 12px; margin-bottom: .5rem; background: #fff; }
.tc-event-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.tc-event-new { border: 1px dashed rgba(var(--sec-rgb), .5); border-radius: 12px; padding: 1rem; background: var(--tc-teal-soft); }
.tc-story-events { border-left: 3px solid var(--tc-teal-soft); padding-left: 1.2rem; margin-left: .9rem; }
.tc-story-event { position: relative; margin-bottom: 2.2rem; }
.tc-story-event-head { display: flex; align-items: center; gap: .8rem; margin: 0 0 .7rem -2.95rem; }
.tc-story-event-head h4 { font-size: 1.2rem; font-weight: 800; }
.tc-story-event-text p { margin-bottom: .8rem; }
.tc-event-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.tc-event-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.tc-event-gallery.tc-g-1 { grid-template-columns: 1fr; }
.tc-event-gallery.tc-g-1 img { aspect-ratio: 16 / 9; }
.tc-event-gallery.tc-g-2 { grid-template-columns: 1fr 1fr; }
.tc-event-video iframe, .tc-event-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
@media (max-width: 575.98px) { .tc-event-gallery { grid-template-columns: 1fr 1fr; } }

/* ---- Video (story + events) ---- */
.tc-video iframe, .tc-video video, .tc-video-lite { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.tc-video-vertical { max-width: 360px; margin-left: auto; margin-right: auto; }
.tc-video-vertical iframe, .tc-video-vertical .tc-video-lite { aspect-ratio: 9 / 16; }
.tc-video-tiktok iframe { aspect-ratio: 9 / 18; }
.tc-video-instagram iframe { aspect-ratio: 9 / 17; background: #fff; border: 1px solid #e9ecef; }
.tc-video video { max-height: 78vh; object-fit: contain; }
.tc-video-lite { position: relative; background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.tc-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: rgba(220, 0, 0, .92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform .15s; }
.tc-video-lite:hover .tc-video-play { transform: translate(-50%, -50%) scale(1.08); }
.tc-video-badge { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; }
.tc-story-filter { display: flex; gap: .4rem; flex-wrap: wrap; }

/* upload progress overlay */
.tc-upload-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tc-upload-box { background: #fff; border-radius: 16px; padding: 1.4rem; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: center; }
.tc-upload-box .progress { height: 12px; border-radius: 999px; }


/* =================== Story page (redesign) =================== */
.tc-read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--tc-teal); z-index: 1080; transition: width .1s linear; }
.tc-story-hero { position: relative; min-height: min(68vh, 560px); display: flex; align-items: flex-end; color: #fff; background: #1b2330; overflow: hidden; }
.tc-story-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,22,.35) 0%, rgba(10,14,22,0) 30%, rgba(10,14,22,.15) 55%, rgba(10,14,22,.82) 100%); }
.tc-story-hero-plain { min-height: 0; background: linear-gradient(135deg, var(--tc-teal-dark), var(--tc-teal)); }
.tc-story-hero-plain::after { display: none; }
.tc-story-hero-inner { position: relative; z-index: 1; padding-top: 1.2rem; padding-bottom: 2.4rem; max-width: 960px; }
.tc-story-hero-plain .tc-story-hero-inner { padding-bottom: 2rem; }
.tc-story-back { position: absolute; top: 1.2rem; left: calc(var(--bs-gutter-x) * .5); color: #fff; font-size: .9rem; text-decoration: none; background: rgba(0,0,0,.35); padding: .3rem .75rem; border-radius: 999px; backdrop-filter: blur(4px); }
.tc-story-back:hover { color: #fff; background: rgba(0,0,0,.55); }
.tc-story-hero-text { padding-top: 4rem; }
.tc-story-title { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.1; font-weight: 700; margin: 0 0 1.1rem; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 820px; }
.tc-story-pill { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.tc-story-byline { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.tc-story-byline:hover { color: #fff; }
.tc-story-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); }
.tc-story-byline strong { display: block; line-height: 1.2; }
.tc-story-byline small { opacity: .85; }
.tc-story-wrap { max-width: 800px; }
.tc-story-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--tc-line); margin-bottom: 1.6rem; }
.tc-share { display: flex; align-items: center; gap: .35rem; }
.tc-share a, .tc-share button { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tc-line); background: #fff; color: var(--tc-ink-soft); text-decoration: none; transition: all .15s; }
.tc-share a:hover, .tc-share button:hover { background: var(--tc-teal); border-color: var(--tc-teal); color: #fff; }
.tc-story-toc { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .9rem; margin-bottom: 1.2rem; scrollbar-width: thin; align-items: center; }
.tc-story-toc-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tc-muted); white-space: nowrap; }
.tc-story-toc a { white-space: nowrap; font-size: .85rem; text-decoration: none; color: var(--tc-ink); background: #fff; border: 1px solid var(--tc-line); padding: .3rem .75rem .3rem .35rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .45rem; }
.tc-story-toc a b { width: 22px; height: 22px; border-radius: 50%; background: var(--tc-teal); color: #fff; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.tc-story-toc a:hover { border-color: var(--tc-teal); color: var(--tc-teal-dark); }
.tc-story-video { margin-bottom: 1.8rem; }
.tc-story-body { font-size: 1.14rem; }
.tc-story-body > p:first-child::first-letter { font-family: var(--tc-font-head); float: left; font-size: 3.4em; line-height: .85; padding: .08em .1em 0 0; color: var(--tc-teal); font-weight: 700; }
.tc-story-section { margin: 2.6rem 0; }
.tc-story-h2 { font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.tc-story-h2 i { color: var(--tc-teal); font-size: 1.05rem; }
.tc-mosaic-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
.tc-mosaic-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: filter .2s, transform .2s; }
.tc-mosaic-gallery img:hover { filter: brightness(1.06); transform: scale(1.01); }
.tc-mg-1 { grid-template-columns: 1fr; grid-auto-rows: 380px; }
.tc-mg-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
.tc-mg-3 img:first-child, .tc-mg-4 img:first-child, .tc-mg-n img:first-child { grid-column: span 2; grid-row: span 2; }
.tc-mg-4 img:last-child { grid-column: span 3; }
@media (max-width: 575.98px) {
  .tc-mosaic-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .tc-mg-1 { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .tc-mg-3 img:first-child, .tc-mg-4 img:first-child, .tc-mg-n img:first-child { grid-column: span 2; grid-row: span 1; }
  .tc-mg-4 img:last-child { grid-column: span 2; }
  .tc-story-hero { min-height: 62vh; }
  .tc-story-body { font-size: 1.06rem; }
}

/* Events as a timeline */
.tc-story-events { border-left: 0; padding-left: 0; margin-left: 0; position: relative; }
.tc-story-events::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--tc-teal-soft), rgba(var(--sec-rgb), .35), var(--tc-teal-soft)); }
.tc-story-event { position: relative; padding-left: 3rem; margin-bottom: 2.6rem; scroll-margin-top: 90px; }
.tc-story-event-head { margin: 0 0 .8rem -3rem; }
.tc-story-event-head .tc-event-num { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 5px var(--tc-paper); position: relative; z-index: 1; }
.tc-story-event-head h4 { font-size: 1.3rem; font-family: var(--tc-font-head); font-weight: 700; }
.tc-story-event-text { font-size: 1.06rem; }
.tc-event-gallery { margin-top: .6rem; }
.tc-event-gallery img { transition: filter .2s; }
.tc-event-gallery img:hover { filter: brightness(1.06); }
.tc-event-gallery.tc-g-3 img:first-child, .tc-event-gallery.tc-g-n img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
.tc-event-gallery.tc-g-3 { grid-template-columns: repeat(3, 1fr); }

.tc-story-book { background: var(--tc-teal-soft); border-radius: 18px; padding: 1.5rem; margin: 2.6rem 0; }
.tc-story-book .provider-chip { background: #fff; }
.tc-author-box { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: var(--tc-shadow); margin: 2.6rem 0; }
.tc-author-box > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tc-social { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tc-paper); color: var(--tc-ink-soft); text-decoration: none; }
.tc-social:hover { background: var(--tc-teal); color: #fff; }
@media (max-width: 575.98px) { .tc-author-box { flex-direction: column; align-items: center; text-align: center; } .tc-author-box .d-flex { justify-content: center; } }

/* Photo viewer */
.tc-lightbox { position: fixed; inset: 0; z-index: 2100; background: rgba(8, 10, 15, .94); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.tc-lightbox[hidden] { display: none; }
.tc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); user-select: none; }
.tc-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.tc-lightbox button:hover { background: rgba(255,255,255,.25); }
.tc-lb-close { top: 14px; right: 14px; }
.tc-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.tc-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.tc-lb-single .tc-lb-prev, .tc-lb-single .tc-lb-next { display: none; }
.tc-lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .85rem; }
@media (max-width: 575.98px) { .tc-lightbox { padding: 3.5rem .5rem; } .tc-lb-prev, .tc-lb-next { top: auto; bottom: 8px; transform: none; } }
