/* Shared styles for the Company pages: History, Testimonials, Gallery, Blog.
   Uses the theme variables from BitTemp/assets/css/style.css. */
.bit-page { --bp-border: #e6e9ef; --bp-soft: #f5f8fb; --bp-green-soft: rgba(55,170,103,.12); }
.bit-page .bp-section { padding: 90px 0; }
.bit-page .bp-soft { background: var(--bp-soft); }
.bit-page .centred { text-align: center; }
.bit-page .bp-eyebrow { display: inline-block; font-size: 15px; font-weight: 600; color: var(--theme-color); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px; }
.bit-page .bp-title { font-family: var(--title-font); font-size: 42px; line-height: 1.15; font-weight: 700; color: var(--title-color); margin-bottom: 16px; }
.bit-page .bp-lead { font-size: 17px; line-height: 28px; color: var(--text-color); max-width: 760px; margin: 0 auto; }

/* Dev-only placeholder notice */
.bp-sample-notice { max-width: 1170px; margin: 30px auto 0; padding: 14px 20px; border-radius: 10px; background: #fff8e1; border: 1px solid #ffd54f; color: #6d4c00; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.bp-sample-notice i { margin-top: 3px; color: #f9a825; }

/* Filter buttons (gallery, blog) */
.bp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px 0 45px; }
.bp-filters button { background: #fff; border: 1px solid var(--bp-border); border-radius: 30px; padding: 10px 22px; font-size: 15px; font-weight: 500; color: var(--title-color); cursor: pointer; transition: all .3s ease; font-family: var(--text-font); }
.bp-filters button:hover { border-color: var(--theme-color); }
.bp-filters button.active { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* CTA */
.bp-cta { background: var(--secondary-color); border-radius: 20px; padding: 60px 40px; text-align: center; }
.bp-cta h2 { font-family: var(--title-font); font-size: 38px; line-height: 1.2; color: #fff; margin-bottom: 14px; }
.bp-cta p { color: rgba(255,255,255,.8); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.bp-cta a { display: inline-block; background: var(--theme-color); color: #fff; padding: 14px 34px; border-radius: 8px; font-weight: 600; font-size: 17px; transition: all .3s ease; }
.bp-cta a:hover { background: #fff; color: var(--secondary-color); }

/* ---------- History ---------- */
.bp-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bp-intro-grid img { width: 100%; border-radius: 18px; box-shadow: 0 20px 45px rgba(11,23,132,.10); }
.bp-intro-grid .bp-lead { margin: 0 0 16px; max-width: none; }
.bp-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.bp-value { background: #fff; border: 1px solid var(--bp-border); border-radius: 14px; padding: 30px 26px; }
.bp-value .icon, .bp-tl-item .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--bp-green-soft); color: var(--theme-color); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.bp-value h4 { font-family: var(--title-font); font-size: 23px; font-weight: 600; color: var(--title-color); margin-bottom: 8px; }
.bp-value p { font-size: 15px; line-height: 25px; margin: 0; }

.bp-timeline { position: relative; max-width: 1000px; margin: 55px auto 0; }
.bp-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--bp-border); transform: translateX(-50%); }
.bp-tl-item { position: relative; width: 50%; padding: 0 50px 45px 0; }
.bp-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 45px 50px; }
.bp-tl-item::after { content: ""; position: absolute; top: 24px; right: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--theme-color); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--theme-color); }
.bp-tl-item:nth-child(even)::after { right: auto; left: -10px; }
.bp-tl-card { background: #fff; border: 1px solid var(--bp-border); border-radius: 14px; padding: 26px; box-shadow: 0 12px 30px rgba(11,23,132,.05); }
.bp-tl-card .year { display: inline-block; background: var(--secondary-color); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.bp-tl-card h4 { font-family: var(--title-font); font-size: 23px; font-weight: 600; color: var(--title-color); margin-bottom: 8px; }
.bp-tl-card p { font-size: 15px; line-height: 25px; margin: 0; }
.bp-tl-item .icon { position: absolute; top: 0; right: -110px; margin: 0; }
.bp-tl-item:nth-child(even) .icon { right: auto; left: -110px; }

.bp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bp-stat { background: #fff; border: 1px solid var(--bp-border); border-radius: 12px; padding: 26px 15px; text-align: center; }
.bp-stat strong { display: block; font-family: var(--title-font); font-size: 40px; line-height: 1.1; color: var(--secondary-color); }
.bp-stat span { font-size: 15px; color: var(--text-color); }

/* ---------- Testimonials ---------- */
.bp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.bp-quote { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bp-border); border-radius: 16px; padding: 34px 28px 28px; transition: all .3s ease; }
.bp-quote:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(11,23,132,.08); }
.bp-quote .qicon { position: absolute; top: 26px; right: 26px; font-size: 38px; color: var(--bp-green-soft); }
.bp-quote .stars { color: #f5a623; font-size: 14px; margin-bottom: 14px; }
.bp-quote .product { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--theme-color); background: var(--bp-green-soft); border-radius: 20px; padding: 4px 12px; margin-bottom: 14px; }
.bp-quote blockquote { margin: 0 0 24px; font-size: 16px; line-height: 27px; color: var(--title-color); flex: 1; }
.bp-quote .who { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--bp-border); padding-top: 18px; }
.bp-quote .avatar { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--secondary-color); color: #fff; font-family: var(--title-font); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bp-quote .who h5 { font-family: var(--title-font); font-size: 19px; font-weight: 600; color: var(--title-color); margin: 0; }
.bp-quote .who span { font-size: 14px; color: var(--text-color); }

/* ---------- Gallery ---------- */
.bp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bp-gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--bp-border); }
.bp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bp-gallery a:hover img { transform: scale(1.06); }
.bp-gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(11,23,132,.85)); color: #fff; opacity: 0; transform: translateY(10px); transition: all .35s ease; }
.bp-gallery a:hover .cap, .bp-gallery a:focus .cap { opacity: 1; transform: none; }
.bp-gallery .cap strong { display: block; font-family: var(--title-font); font-size: 20px; }
.bp-gallery .cap span { font-size: 13px; opacity: .85; }
.bp-gallery .zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--theme-color); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s ease; }
.bp-gallery a:hover .zoom { opacity: 1; }

/* ---------- Blog ---------- */
.bp-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bp-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bp-border); border-radius: 16px; overflow: hidden; transition: all .3s ease; }
.bp-post:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(11,23,132,.08); }
.bp-post .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bp-soft); }
.bp-post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bp-post:hover .thumb img { transform: scale(1.05); }
.bp-post .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.bp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-color); margin-bottom: 12px; }
.bp-meta i { color: var(--theme-color); margin-right: 5px; }
.bp-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--theme-color); background: var(--bp-green-soft); border-radius: 20px; padding: 4px 12px; margin-bottom: 12px; align-self: flex-start; }
.bp-post h3 { font-family: var(--title-font); font-size: 23px; line-height: 1.3; font-weight: 600; margin-bottom: 10px; }
.bp-post h3 a { color: var(--title-color); }
.bp-post h3 a:hover { color: var(--theme-color); }
.bp-post p { font-size: 15px; line-height: 25px; margin-bottom: 18px; flex: 1; }
.bp-readmore { font-weight: 600; color: var(--secondary-color); }
.bp-readmore:hover { color: var(--theme-color); }

.bp-article-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.bp-article .hero { width: 100%; border-radius: 18px; margin-bottom: 28px; max-height: 460px; object-fit: cover; border: 1px solid var(--bp-border); }
.bp-article h1 { font-family: var(--title-font); font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--title-color); margin-bottom: 14px; }
.bp-article h2 { font-family: var(--title-font); font-size: 28px; font-weight: 600; color: var(--secondary-color); margin: 34px 0 14px; }
.bp-article p { font-size: 16px; line-height: 29px; margin-bottom: 16px; }
.bp-article ul { list-style: none; padding: 0; margin: 0 0 16px; }
.bp-article ul li { position: relative; padding-left: 30px; font-size: 16px; line-height: 27px; margin-bottom: 10px; color: var(--text-color); }
.bp-article ul li::before { content: "\f00c"; font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--theme-color); font-size: 14px; }
.bp-related { margin-top: 36px; padding: 22px 24px; border-radius: 12px; background: var(--bp-green-soft); font-size: 16px; color: var(--title-color); }
.bp-related a { font-weight: 700; color: var(--secondary-color); text-decoration: underline; }
.bp-back { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--secondary-color); }
.bp-back:hover { color: var(--theme-color); }

.bp-sidebar { position: sticky; top: 120px; display: grid; gap: 24px; }
.bp-widget { background: #fff; border: 1px solid var(--bp-border); border-radius: 16px; padding: 26px; }
.bp-widget h4 { font-family: var(--title-font); font-size: 22px; font-weight: 600; color: var(--title-color); margin-bottom: 18px; }
.bp-recent { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.bp-recent:last-child { margin-bottom: 0; }
.bp-recent img { flex: 0 0 72px; width: 72px; height: 60px; border-radius: 10px; object-fit: cover; border: 1px solid var(--bp-border); }
.bp-recent a { font-weight: 600; font-size: 15px; line-height: 21px; color: var(--title-color); }
.bp-recent a:hover { color: var(--theme-color); }
.bp-recent span { display: block; font-size: 12px; color: var(--text-color); margin-top: 3px; }
.bp-widget.dark { background: var(--secondary-color); border-color: var(--secondary-color); }
.bp-widget.dark h4 { color: #fff; }
.bp-widget.dark p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 24px; }
.bp-widget.dark a { display: inline-block; margin-top: 6px; background: var(--theme-color); color: #fff; padding: 11px 22px; border-radius: 8px; font-weight: 600; }
.bp-widget.dark a:hover { background: #fff; color: var(--secondary-color); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .bp-tl-item .icon { display: none; }
}
@media (max-width: 991px) {
    .bp-intro-grid, .bp-article-grid { grid-template-columns: 1fr; gap: 40px; }
    .bp-testimonials, .bp-gallery, .bp-posts, .bp-values { grid-template-columns: repeat(2, 1fr); }
    .bp-sidebar { position: static; }
}
@media (max-width: 767px) {
    .bit-page .bp-section { padding: 60px 0; }
    .bit-page .bp-title { font-size: 32px; }
    .bp-article h1 { font-size: 30px; }
    .bp-testimonials, .bp-gallery, .bp-posts, .bp-values { grid-template-columns: 1fr; }
    .bp-stats { grid-template-columns: repeat(2, 1fr); }
    .bp-timeline::before { left: 10px; }
    .bp-tl-item, .bp-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 30px 40px; }
    .bp-tl-item::after, .bp-tl-item:nth-child(even)::after { left: 0; right: auto; }
    .bp-cta { padding: 40px 22px; }
    .bp-cta h2 { font-size: 28px; }
}
