/* TechGlobal reusable CKEditor content blocks (frontend). */
.tg-rich-content {
    color: #46515b;
    font-size: 15px;
    line-height: 1.75;
}

.tg-rich-content > :first-child { margin-top: 0; }
.tg-rich-content > :last-child { margin-bottom: 0; }
.tg-rich-content img { max-width: 100%; height: auto; }
.tg-rich-content figure { max-width: 100%; margin: 24px auto; }
.tg-rich-content figure.image img { display: block; margin: 0 auto; }
.tg-rich-content figcaption { padding: 8px 12px; color: #77828c; background: #f6f8fa; font-size: 13px; text-align: center; }
.tg-rich-content figure.media { width: 80%; aspect-ratio: 16 / 9; }
.tg-rich-content figure.media iframe,
.tg-rich-content .content-youtube-embed { display: block; width: 100%; height: 100%; border: 0; }

.tg-content-block {
    clear: both;
    width: 100%;
    margin: 32px 0;
    box-sizing: border-box;
}

.tg-content-block *,
.tg-content-block *::before,
.tg-content-block *::after { box-sizing: border-box; }

/* Comparison table */
.tech-content-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #dbe5ed; border-radius: 8px; background: #fff; }
.tech-content-table { width: 100%; min-width: 620px; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; }
.tech-content-table th,
.tech-content-table td { padding: 13px 15px; border-right: 1px solid #e1e8ee; border-bottom: 1px solid #e1e8ee; vertical-align: top; text-align: left; }
.tech-content-table thead th,
.tech-content-table tbody:first-child > tr:first-child > th { color: #fff; background: #145a95; font-weight: 700; }
.tech-content-table tbody th { color: #21384a; background: #f1f7fc; font-weight: 700; }
.tech-content-table tr > :last-child { border-right: 0; }
.tech-content-table tbody tr:last-child > * { border-bottom: 0; }
.tech-content-table tbody tr:nth-child(even) td { background: #f8fbfd; }
.tech-content-table p { margin: 0; }

/* FAQ */
.tech-product-faq { display: grid; gap: 12px; }
.tech-product-faq > h2 { margin-bottom: 6px; }
.tech-product-faq-item { overflow: hidden; border: 1px solid #dbe5ed; border-radius: 7px; background: #fff; }
.tech-product-faq-item summary { position: relative; display: flex; align-items: center; min-height: 54px; padding: 13px 48px 13px 16px; color: #243746; cursor: pointer; list-style: none; }
.tech-product-faq-item summary::-webkit-details-marker { display: none; }
.tech-product-faq-item summary::after { position: absolute; right: 17px; color: #145a95; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f067"; }
.tech-product-faq-item[open] summary::after { content: "\f068"; }
.tech-product-faq-item summary h3 { margin: 0; color: inherit; font-size: 16px; font-weight: 700; line-height: 1.45; }
.tech-product-faq-item > p,
.tech-product-faq-item > div { margin: 0; padding: 0 16px 16px; color: #53616d; }

/* CTA */
.tech-content-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-radius: 8px; background: linear-gradient(135deg, #0d5792, #1387c2); color: #fff; box-shadow: 0 10px 28px rgba(20, 90, 149, .18); }
.tech-content-cta__copy { display: grid; gap: 4px; min-width: 0; }
.tech-content-cta__copy strong { color: #fff; font-size: 19px; line-height: 1.4; }
.tech-content-cta__copy span { color: rgba(255, 255, 255, .9); font-size: 14px; }
.tech-content-cta__button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 10px 18px; border: 2px solid #f4c400; border-radius: 999px; color: #173b5b !important; background: #f4c400; font-weight: 700; text-decoration: none !important; }
.tech-content-cta__button::before { margin-right: 8px; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f061"; }
.tech-content-cta[data-tg-cta="phone"] .tech-content-cta__button::before { content: "\f095"; }
.tech-content-cta[data-tg-cta="check"] .tech-content-cta__button::before { content: "\f058"; }
.tech-content-cta__button:hover,
.tech-content-cta__button:focus { color: #fff !important; background: #0b4777; border-color: #fff; }

/* Feature grid */
.tech-requirement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tech-requirement-grid[data-tg-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tech-requirement-grid[data-tg-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-requirement-card { position: relative; min-width: 0; padding: 20px 18px; border: 1px solid #dce6ee; border-radius: 8px; background: #fff; box-shadow: 0 5px 18px rgba(20, 90, 149, .06); }
.tech-requirement-card::before,
.tech-requirement-card > i { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 13px; border-radius: 50%; color: #145a95; background: #eaf4fc; font-family: "Font Awesome 5 Free"; font-size: 18px; font-style: normal; font-weight: 900; content: "\f7c0"; }
.tech-requirement-card[data-tg-icon="shield"]::before { content: "\f3ed"; }
.tech-requirement-card[data-tg-icon="camera"]::before { content: "\f03d"; }
.tech-requirement-card[data-tg-icon="location"]::before { content: "\f3c5"; }
.tech-requirement-card[data-tg-icon="car"]::before { content: "\f1b9"; }
.tech-requirement-card[data-tg-icon="settings"]::before { content: "\f013"; }
.tech-requirement-card[data-tg-icon="motorcycle"]::before { content: "\f21c"; }
.tech-requirement-card[data-tg-icon="truck"]::before { content: "\f0d1"; }
.tech-requirement-card[data-tg-icon="battery"]::before { content: "\f240"; }
.tech-requirement-card[data-tg-icon="mobile"]::before { content: "\f3cd"; }
.tech-requirement-card[data-tg-icon="wifi"]::before { content: "\f1eb"; }
.tech-requirement-card[data-tg-icon="route"]::before { content: "\f4d7"; }
.tech-requirement-card > i { font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands"; }
.tech-requirement-card:has(> i)::before { display: none; }
.tech-requirement-card h3 { margin: 0 0 7px; color: #243746; font-size: 16px; line-height: 1.45; }
.tech-requirement-card p { margin: 0; color: #62717d; font-size: 14px; }

/* Highlight note */
.tech-content-note { padding: 18px 20px; border: 1px solid #cfe2f2; border-left: 5px solid #145a95; border-radius: 6px; background: #f2f8fd; }
.tech-content-note--warning { border-color: #f1d98b; border-left-color: #e9a800; background: #fff9e8; }
.tech-content-note--success { border-color: #b9dfcb; border-left-color: #27845a; background: #f0faf5; }
.tech-content-note h3 { margin: 0 0 7px; color: #21384a; font-size: 17px; }
.tech-content-note p:last-child { margin-bottom: 0; }

/* Checklist */
.tech-content-checklist { display: grid; gap: 9px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tech-content-checklist li { position: relative; margin: 0 !important; padding: 11px 13px 11px 40px !important; border: 1px solid #e0e8ee; border-radius: 6px; background: #fff; list-style: none !important; }
.tech-content-checklist li::before { position: absolute; top: 50%; left: 14px; color: #1c9560; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f058"; transform: translateY(-50%); }

/* Partner network */
.tech-partner-network { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 44%); width: 100%; min-height: 620px; aspect-ratio: 16 / 9; box-sizing: border-box; overflow: hidden; padding: 34px; border: 1px solid #dce7ef; border-radius: 10px; background: #eef7ff url("../images/backgrounds/bg-daily-techglobal.webp") center / cover no-repeat; box-shadow: 0 10px 30px rgba(20,89,157,.08); }
.tech-partner-network__content { display: flex; align-self: center; flex-direction: column; gap: 24px; min-width: 0; }
.tech-partner-network__title { display: grid; gap: 2px; margin: 0 !important; color: #175f9f; font-size: clamp(30px, 3vw, 46px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.tech-partner-network__title span,
.tech-partner-network__title strong { display: block; color: inherit; font: inherit; }
.tech-partner-network__title strong { color: #173f30; }
.tech-partner-network__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tech-partner-network__stat { display: flex; min-height: 186px; padding: 20px 18px; flex-direction: column; border: 1px solid rgba(20, 89, 157, .08); border-radius: 8px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(20,89,157,.08); }
.tech-partner-network__stat::before { margin-bottom: 14px; color: #1766aa; font-family: "Font Awesome 5 Free"; font-size: 28px; font-weight: 900; content: "\f0c0"; }
.tech-partner-network__stat[data-tg-stat-icon="technician"]::before { content: "\f4fe"; }
.tech-partner-network__stat[data-tg-stat-icon="shield"]::before { content: "\f3ed"; }
.tech-partner-network__stat strong { display: block; margin-bottom: 14px; color: #1766aa; font-size: clamp(32px, 3.2vw, 50px); line-height: 1; }
.tech-partner-network__stat span { margin-top: auto; color: #243443; font-size: 14px; line-height: 1.55; }
.tech-partner-network__panel { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(180px, .92fr); gap: 22px; padding: 20px 22px; border-radius: 8px; background: rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(20,89,157,.08); }
.tech-partner-network__copy > strong { display: block; margin-bottom: 12px; color: #1e2f3e; font-size: 19px; }
.tech-partner-network__copy > p { margin: 0 !important; color: #405363; font-size: 14px; }
.tech-partner-network__actions { display: flex; justify-content: center; flex-direction: column; gap: 13px; padding-left: 22px; border-left: 1px solid #cbdbea; }
.tech-partner-network__actions ul { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tech-partner-network__actions li { position: relative; margin: 0 !important; padding: 0 0 0 27px !important; list-style: none !important; }
.tech-partner-network__actions li::before { position: absolute; top: 50%; left: 0; color: #1263b2; font-family: "Font Awesome 5 Free"; font-size: 18px; font-weight: 900; content: "\f3c5"; transform: translateY(-50%); }
.tech-partner-network__actions a { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 15px; border-radius: 4px; color: #fff !important; background: #1766aa; font-weight: 700; text-decoration: none !important; }
.tech-partner-network__actions a::after { margin-left: 8px; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f061"; }
.tech-partner-network__map { min-width: 0; min-height: 1px; }

/* Article contact form */
.tech-article-contact { padding: 26px; border: 1px solid #d6e5f1; border-radius: 9px; background: linear-gradient(145deg, #f5faff, #fff); box-shadow: 0 10px 30px rgba(20,90,149,.08); }
.tech-article-contact__heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tech-article-contact__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: #145a95; font-size: 18px; }
.tech-article-contact__title { margin: 0 !important; color: #183d5c; font-size: 20px; font-weight: 700; }
.tech-article-contact__description { margin: 4px 0 0 !important; color: #647481; font-size: 14px; }
.tech-article-contact__form { position: relative; }
.tech-article-contact__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tech-article-contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tech-article-contact__field { margin-bottom: 14px; }
.tech-article-contact__field label { display: block; margin-bottom: 6px; color: #334958; font-size: 14px; font-weight: 600; }
.tech-article-contact__field label span { color: #d93025; }
.tech-article-contact__field input,
.tech-article-contact__field textarea { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd9e4; border-radius: 5px; color: #253743; background: #fff; font: inherit; }
.tech-article-contact__field textarea { min-height: 110px; resize: vertical; }
.tech-article-contact__field input:focus,
.tech-article-contact__field textarea:focus { outline: 2px solid rgba(20,90,149,.2); border-color: #145a95; }
.tech-article-contact__actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tech-article-contact__status { margin: 0 !important; color: #23724d; font-size: 14px; }
.tech-article-contact__status.is-error { color: #bd2c2c; }
.tech-article-contact__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 5px; color: #fff; background: #145a95; font-weight: 700; cursor: pointer; }
.tech-article-contact__submit:hover,
.tech-article-contact__submit:focus { background: #087fc4; }
.tech-article-contact__submit:disabled { opacity: .65; cursor: wait; }

/* Live product cards */
.article-product-embed { padding: 22px; border: 1px solid #dce7ef; border-radius: 9px; background: #f7fbfe; }
.article-product-embed__heading { display: flex; align-items: center; gap: 9px; margin: 0 0 18px !important; color: #145a95; font-size: 21px; }
.article-product-embed__grid { display: grid; grid-template-columns: repeat(var(--tg-product-columns, 3), minmax(0, 1fr)); gap: 16px; }
.article-product-embed--1 { --tg-product-columns: 1; }
.article-product-embed--2 { --tg-product-columns: 2; }
.article-product-embed--3 { --tg-product-columns: 3; }
.article-product-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid #dce5ec; border-radius: 6px; background: #fff; box-shadow: 0 4px 14px rgba(27,77,118,.06); }
.article-product-embed--1 .article-product-card { grid-template-columns: 220px minmax(0, 1fr); }
.article-product-card__image { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px; background: #fff; }
.article-product-card__image img { display: block; width: 100% !important; max-width: 240px !important; height: auto !important; margin: 0 auto !important; aspect-ratio: 1 / 1; object-fit: contain; }
.article-product-card__sale { position: absolute; top: 10px; left: 10px; padding: 3px 7px; border-radius: 20px; color: #fff; background: #df5353; font-size: 11px; font-weight: 700; }
.article-product-card__content { display: flex; min-width: 0; padding: 16px; flex-direction: column; }
.article-product-embed--1 .article-product-card__content { justify-content: center; border-left: 1px solid #e1e8ee; }
.article-product-card__category { margin-bottom: 5px; color: #81909d; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.article-product-card__name { margin: 0 0 8px !important; font-size: 15px; line-height: 1.45; }
.article-product-card__name a { color: #26384a; text-decoration: none; }
.article-product-card__warranty { margin: 0 0 9px !important; color: #df2525; font-size: 12px; }
.article-product-card__price { display: flex; align-items: baseline; gap: 8px; margin: auto 0 12px !important; }
.article-product-card__price del { color: #929ca5; font-size: 12px; }
.article-product-card__price strong { color: #145a95; font-size: 17px; }
.article-product-card__button { display: inline-flex; align-items: center; align-self: flex-start; gap: 7px; padding: 8px 13px; border: 1px solid #1764aa; border-radius: 20px; color: #1764aa !important; background: #fff; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.article-product-card__button:hover,
.article-product-card__button:focus { color: #fff !important; background: #1764aa; }

@media (max-width: 1199.98px) {
    .tech-partner-network { grid-template-columns: minmax(0, 59%) minmax(0, 41%); padding: 28px; }
    .tech-partner-network__content { gap: 18px; }
    .tech-partner-network__stat { min-height: 165px; padding: 16px 14px; }
}

@media (max-width: 991.98px) {
    .tech-requirement-grid,
    .tech-requirement-grid[data-tg-columns="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tech-partner-network { grid-template-columns: 1fr; min-height: 0; aspect-ratio: auto; gap: 24px; padding: 24px; background-image: none; }
    .tech-partner-network__map { min-height: 380px; border-radius: 6px; background: #eef7ff url("../images/backgrounds/bg-daily-techglobal.webp") right center / 200% auto no-repeat; }
    .article-product-embed__grid { grid-template-columns: repeat(min(var(--tg-product-columns, 2), 2), minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .tg-rich-content figure.media { width: 100%; }
    .tech-content-cta { align-items: flex-start; flex-direction: column; }
    .tech-content-cta__button { width: 100%; }
    .tech-requirement-grid,
    .tech-requirement-grid[data-tg-columns="2"],
    .tech-requirement-grid[data-tg-columns="4"],
    .tech-partner-network__stats,
    .tech-partner-network__panel,
    .tech-article-contact__row,
    .article-product-embed__grid,
    .article-product-embed--1 .article-product-card { grid-template-columns: 1fr; }
    .tech-partner-network__actions { padding: 16px 0 0; border-top: 1px solid #cbdbea; border-left: 0; }
    .tech-partner-network__map { min-height: 320px; }
    .tech-article-contact__actions { align-items: stretch; flex-direction: column; }
    .tech-article-contact__submit { width: 100%; }
    .article-product-embed--1 .article-product-card__content { border-top: 1px solid #e1e8ee; border-left: 0; }
}

@media (max-width: 575.98px) {
    .tg-content-block { margin: 24px 0; }
    .tech-content-cta,
    .tech-article-contact,
    .article-product-embed { padding: 18px 15px; }
    .tech-partner-network { padding: 15px; }
    .tech-partner-network__title { font-size: 28px; }
    .tech-partner-network__stat { min-height: 0; }
    .tech-partner-network__map { min-height: 300px; }
}
