/* Tech Guru home page, 11 October 2026. Loaded only by includes/tt/hostim/tg-home.tpl (homepage). */
:root {
    --tgh-navy: #0d2b45;
    --tgh-navy-2: #0a2236;
    --tgh-blue: #29abe2;
    --tgh-blue-dk: #1487ba;
    --tgh-green: #25a244;
    --tgh-ink: #1e293b;
    --tgh-muted: #5b6b80;
    --tgh-line: #e3e9f1;
    --tgh-bg: #f5f7fa;
    --tgh-card: #ffffff;
    --tgh-tint: #eaf6fc;
    --tgh-r: 14px;
}
:root[data-bs-theme="dark"] {
    --tgh-ink: #e6edf5;
    --tgh-muted: #a3b2c4;
    --tgh-line: #24384d;
    --tgh-bg: #0b1622;
    --tgh-card: #112233;
    --tgh-tint: #16324a;
}

/* Page frame: the theme pads #main-body by 100px on the homepage; sections carry their own spacing here. */
body.primary-bg-color { background: var(--tgh-bg) !important; }
body.primary-bg-color #main-body { padding: 0 !important; min-height: 0 !important; background: var(--tgh-bg); }
.tgh-hero *, .tgh-section *, .tgh-news *, .tgh-cta * { box-sizing: border-box; }

/* Shared */
.tgh-h1, .tgh-h2, .tgh-h3, .tgh-h4, .tgh-cta-title, .tgh-account-title { font-family: Roboto, "Open Sans", sans-serif; letter-spacing: -0.01em; }
.tgh-h2 { font-size: 1.75rem; font-weight: 700; color: var(--tgh-ink); margin: 0 0 .5rem; }
.tgh-h3 { font-size: 1.3rem; font-weight: 700; color: var(--tgh-ink); margin: 0; }
.tgh-h4 { font-size: 1.05rem; font-weight: 700; color: var(--tgh-ink); margin: .85rem 0 .35rem; }
.tgh-section { padding: 64px 0; }
.tgh-head { max-width: 640px; margin: 0 0 28px; }
.tgh-head p { color: var(--tgh-muted); margin: 0; font-size: 1rem; }
.tgh-link { color: var(--tgh-blue-dk); font-weight: 600; text-decoration: none; }
.tgh-link:hover { text-decoration: underline; }

.tgh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
    text-decoration: none !important; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.tgh-btn i { font-size: .85em; }
.tgh-btn-primary { background: var(--tgh-blue-dk); color: #fff !important; }
.tgh-btn-primary:hover { background: #0f6f99; }
.tgh-btn-ghost { border-color: rgba(255,255,255,.45); color: #fff !important; }
.tgh-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.tgh-btn-light { background: #fff; border-color: var(--tgh-line); color: var(--tgh-navy) !important; }
.tgh-btn-light:hover { border-color: var(--tgh-blue-dk); }
.tgh-btn-block { display: flex; width: 100%; }
.tgh-btn:focus-visible, .tgh-card:focus-visible, .tgh-search-btn:focus-visible, .tgh-quick a:focus-visible, .tgh-more a:focus-visible, .tgh-cta-item:focus-visible, .tgh-news-item:focus-visible {
    outline: 3px solid var(--tgh-blue); outline-offset: 2px;
}

.tgh-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 12px; background: var(--tgh-tint); color: var(--tgh-blue-dk); font-size: 1.15rem;
}
.tgh-ico-lg { width: 56px; height: 56px; font-size: 1.45rem; }

/* Hero */
.tgh-hero {
    background: radial-gradient(1200px 500px at 85% -10%, rgba(41,171,226,.22), transparent 60%), linear-gradient(160deg, var(--tgh-navy) 0%, var(--tgh-navy-2) 100%);
    color: #d6e3ef; padding: 56px 0 64px;
}
.tgh-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.tgh-eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(41,171,226,.15); color: #9bd9f3; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.tgh-h1 { color: #fff; font-size: 2rem; line-height: 1.2; font-weight: 700; margin: 0 0 14px; max-width: 20ch; }
.tgh-lead { font-size: 1.05rem; line-height: 1.6; color: #c3d3e2; margin: 0 0 26px; max-width: 56ch; }

.tgh-search { margin: 0 0 12px; max-width: 620px; }
.tgh-search-box { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tgh-search-ico { color: #8aa0b6; margin: 0 4px 0 10px; }
.tgh-search-input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; height: 44px; padding: 0 8px; font-size: 1rem; color: #1e293b; }
.tgh-search-input::placeholder { color: #8a97a8; }
.tgh-search-btn { flex: none; border: 0; border-radius: 9px; height: 44px; padding: 0 22px; background: var(--tgh-blue-dk); color: #fff; font-weight: 600; cursor: pointer; }
.tgh-search-btn:hover { background: #0f6f99; }
.tgh-tlds { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .85rem; margin: 0 0 28px; color: #c3d3e2; }
.tgh-tld strong { color: #fff; }
.tgh-tld-link { color: #9bd9f3 !important; text-decoration: underline; text-underline-offset: 3px; }
.tgh-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tgh-hero-call { margin: 0; font-size: .95rem; color: #c3d3e2; }
.tgh-hero-call i { color: #4ade80; margin-right: 4px; }
.tgh-hero-call a { color: #fff !important; font-weight: 600; text-decoration: none; }

.tgh-account { background: var(--tgh-card); color: var(--tgh-ink); border-radius: var(--tgh-r); padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.tgh-account-title { font-size: 1.2rem; font-weight: 700; color: var(--tgh-ink); margin: 0 0 4px; }
.tgh-account-sub { color: var(--tgh-muted); margin: 0 0 16px; font-size: .92rem; }
.tgh-account-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tgh-quick { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--tgh-line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.tgh-quick a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px; color: var(--tgh-ink) !important; font-size: .9rem; font-weight: 500; text-decoration: none; }
.tgh-quick a:hover { background: var(--tgh-tint); }
.tgh-quick i { width: 18px; text-align: center; color: var(--tgh-blue-dk); }

/* Services */
.tgh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tgh-card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start;
    padding: 18px; background: var(--tgh-card); border: 1px solid var(--tgh-line); border-radius: var(--tgh-r);
    text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tgh-card .tgh-ico { grid-row: span 2; }
.tgh-card:hover { border-color: var(--tgh-blue); box-shadow: 0 8px 24px rgba(13,43,69,.08); transform: translateY(-2px); }
.tgh-card-title { font-weight: 700; color: var(--tgh-ink); font-size: 1rem; }
.tgh-card-text { color: var(--tgh-muted); font-size: .9rem; line-height: 1.5; }
.tgh-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.tgh-more-label { font-weight: 700; color: var(--tgh-ink); margin-right: 6px; font-size: .9rem; width: 100%; }
.tgh-more a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tgh-line); background: var(--tgh-card); color: var(--tgh-ink) !important; font-size: .87rem; text-decoration: none; }
.tgh-more a:hover { border-color: var(--tgh-blue-dk); color: var(--tgh-blue-dk) !important; }
.tgh-more a.tgh-more-all { border-color: transparent; background: transparent; color: var(--tgh-blue-dk) !important; font-weight: 600; }

/* Own products */
.tgh-own { background: var(--tgh-card); border-top: 1px solid var(--tgh-line); border-bottom: 1px solid var(--tgh-line); }
.tgh-own-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tgh-own-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--tgh-r); border: 1px solid var(--tgh-line); background: var(--tgh-bg); }
.tgh-own-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.tgh-own-tag { margin: 2px 0 0; color: var(--tgh-muted); font-size: .92rem; }
.tgh-ticks { list-style: none; margin: 0 0 22px; padding: 0; flex: 1 1 auto; }
.tgh-ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--tgh-ink); font-size: .95rem; line-height: 1.55; }
.tgh-ticks li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
    background: var(--tgh-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.1 13.6 4.5 10l1.4-1.4 2.2 2.2 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tgh-own-card .tgh-btn { align-self: flex-start; }

/* Why */
.tgh-why-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tgh-why-item { padding: 20px; border-radius: var(--tgh-r); background: var(--tgh-card); border: 1px solid var(--tgh-line); }
.tgh-why-item p { margin: 0; color: var(--tgh-muted); font-size: .92rem; line-height: 1.55; }

/* Latest news (homepage.tpl, inside #main-body) */
.tgh-news { padding: 0 0 64px; margin: 0 -15px; }
.tgh-news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tgh-news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tgh-news-item { display: block; padding: 16px 18px; border-radius: 12px; background: var(--tgh-card); border: 1px solid var(--tgh-line); text-decoration: none !important; }
.tgh-news-item:hover { border-color: var(--tgh-blue); }
.tgh-news-date { display: block; font-size: .8rem; color: var(--tgh-muted); margin-bottom: 4px; }
.tgh-news-title { display: block; font-weight: 600; color: var(--tgh-ink); }

/* CTA band (tt-cta.tpl, above the footer) */
.tgh-cta { background: linear-gradient(160deg, var(--tgh-navy) 0%, var(--tgh-navy-2) 100%); color: #c3d3e2; padding: 48px 0; }
.tgh-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.tgh-cta-title { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.tgh-cta-text p { margin: 0; }
.tgh-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tgh-cta-item { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff !important; text-decoration: none !important; font-weight: 600; min-width: 0; }
.tgh-cta-item:hover { background: rgba(255,255,255,.13); }
.tgh-cta-item i { font-size: 1.2rem; color: #9bd9f3; width: 22px; text-align: center; }
.tgh-cta-item .fa-whatsapp { color: #4ade80; }
.tgh-cta-item span { min-width: 0; overflow-wrap: anywhere; }
.tgh-cta-item small { display: block; font-weight: 400; color: #a9bdd0; font-size: .78rem; }

/* Wider screens */
@media (min-width: 576px) {
    .tgh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgh-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgh-more-label { width: auto; }
}
@media (min-width: 768px) {
    .tgh-h1 { font-size: 2.5rem; }
    .tgh-hero { padding: 72px 0 80px; }
    .tgh-section { padding: 80px 0; }
    .tgh-own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tgh-news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tgh-cta-item { flex: 1 1 calc(50% - 5px); } /* four items (WhatsApp, call, email, account) in a 2 x 2 grid */
    .tgh-cta-item span { white-space: nowrap; }
}
@media (min-width: 992px) {
    .tgh-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; }
    .tgh-h1 { font-size: 2.9rem; }
    .tgh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tgh-card { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding: 22px; }
    .tgh-card .tgh-ico { grid-row: auto; margin-bottom: 8px; }
    .tgh-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tgh-cta-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
@media (max-width: 575.98px) {
    .tgh-hero > .container, .tgh-section > .container, .tgh-cta > .container { padding-left: 16px; padding-right: 16px; }
    body.primary-bg-color #main-body > .container { padding-left: 16px; padding-right: 16px; }
    .tgh-search-btn { padding: 0 16px; }
    .tgh-search-ico { display: none; }
    .tgh-hero-btns .tgh-btn { flex: 1 1 100%; }
    .tgh-account { padding: 20px; }
    .tgh-hero-call { padding-right: 52px; } /* keep the call line clear of the floating WhatsApp button (tg_whatsapp.php) */
    .tgh-hero-call a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .tgh-card, .tgh-btn { transition: none; }
    .tgh-card:hover { transform: none; }
}
