/* ==========================================================================
   TezIT "Aurora" Theme — unique redesign layered over the HighTech template
   Palette : Indigo ink + Amber accent + Teal pop, warm cream surfaces
   Type    : Sora (display) + Plus Jakarta Sans (body)
   ========================================================================== */

:root {
    --tn-ink: #0E1020;
    --tn-ink-2: #171A33;
    --tn-brand: #3B2FBF;
    --tn-brand-2: #6D5BFF;
    --tn-brand-3: #A08CFF;
    --tn-accent: #FF8A3D;
    --tn-accent-2: #FFB25E;
    --tn-teal: #12B5A5;
    --tn-cream: #14162E;
    --tn-mist: #171440;
    --tn-line: rgba(255, 255, 255, 0.10);
    --tn-onlight: #0E1020;
    --tn-muted: #A7ABCC;
    --tn-white: #FFFFFF;

    --tn-grad-brand: linear-gradient(120deg, var(--tn-brand) 0%, var(--tn-brand-2) 55%, var(--tn-brand-3) 100%);
    --tn-grad-accent: linear-gradient(120deg, var(--tn-accent) 0%, var(--tn-accent-2) 100%);
    --tn-grad-dark: linear-gradient(135deg, #12142C 0%, #241C53 60%, #3B2FBF 140%);

    --tn-shadow-sm: 0 6px 18px rgba(14, 16, 32, 0.06);
    --tn-shadow-md: 0 18px 40px rgba(14, 16, 32, 0.10);
    --tn-shadow-lg: 0 34px 70px rgba(14, 16, 32, 0.16);
    --tn-radius: 22px;
    --tn-radius-lg: 34px;
    --tn-nav-h: 78px;
  --tn-top-h: 44px;
    --tn-font-display: 'Sora', 'Saira', system-ui, sans-serif;
    --tn-font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  }

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tn-font-body);
    color: rgba(255, 255, 255, 0.86);
    background: #0E1020;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tn-font-display);
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
}

/* ---------------------------------------------------------------- buttons */
.tn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
  }

.tn-btn:hover {
    transform: translateY(-3px);
}

.tn-btn-accent {
    background: var(--tn-grad-accent);
    color: #20120a;
    box-shadow: 0 14px 30px rgba(255, 138, 61, 0.35);
}

.tn-btn-accent:hover {
    color: #20120a;
    box-shadow: 0 20px 38px rgba(255, 138, 61, 0.45);
}

.tn-btn-brand {
    background: var(--tn-grad-brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(59, 47, 191, 0.32);
}

.tn-btn-brand:hover {
    color: #fff;
}

.tn-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.tn-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.tn-btn-outline {
    background: transparent;
    color: var(--tn-brand);
    border-color: rgba(59, 47, 191, 0.30);
}

.tn-btn-outline:hover {
    background: rgba(59, 47, 191, 0.07);
    color: var(--tn-brand);
}

/* -------------------------------------------------------------- section   */
.tn-section {
    position: relative;
    padding: clamp(64px, 7vw, 104px) 0;
  }

.tn-section--mist {
    background:
        radial-gradient(1000px 460px at 8% 0%, rgba(109, 91, 255, 0.20), transparent 60%),
        radial-gradient(900px 420px at 100% 100%, rgba(255, 138, 61, 0.14), transparent 60%),
        var(--tn-mist);
}

.tn-section--cream {
    background: linear-gradient(180deg, #14162E 0%, #16133A 100%);
}

.tn-section--dark {
    background: var(--tn-grad-dark);
    color: rgba(255, 255, 255, 0.86);
}

.tn-head {
    max-width: 720px;
    margin-bottom: clamp(34px, 4vw, 56px);
}

.tn-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tn-brand-3);
    margin-bottom: 16px;
}

.tn-eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--tn-grad-accent);
}

.tn-head--center .tn-eyebrow::after {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: var(--tn-grad-accent);
}

.tn-section--dark .tn-eyebrow {
    color: var(--tn-accent-2);
}

.tn-title {
    font-size: clamp(1.9rem, 3.3vw, 2.9rem);
    font-weight: 800;
    line-height: 1.14;
    color: #fff;
    margin: 0 0 16px;
}

.tn-section--dark .tn-title {
    color: #fff;
}

.tn-title .tn-grad {
    background: var(--tn-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tn-lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--tn-muted);
    margin: 0;
}

.tn-section--dark .tn-lead {
    color: rgba(255, 255, 255, 0.72);
}

/* =========================================================== TOPBAR ====== */
.tn-topbar {
    background: #08091A;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    min-height: var(--tn-top-h);
    display: flex;
    align-items: center;
}

.tn-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
}

.tn-topbar-left,
.tn-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tn-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tn-topbar-item:hover {
    color: var(--tn-accent-2);
}

.tn-topbar-item i {
    color: var(--tn-accent-2);
    font-size: 0.82rem;
}

.tn-topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tn-topbar-socials a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.76rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.tn-topbar-socials a:hover {
    background: var(--tn-grad-accent);
    color: #20120a;
    transform: translateY(-2px);
}

/* ============================================================= HEADER ==== */
.tn-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(12, 13, 32, 0.94);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.tn-header.is-stuck {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    background: rgba(9, 10, 26, 0.98);
}

/* ------------------------------------------------------- brand row ------ */
.tn-brandbar {
    background: linear-gradient(180deg, rgba(20, 17, 54, 0.9), rgba(14, 16, 32, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tn-brandbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tn-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;
}

.tn-brand-logo {
    height: 52px;
    /* Keep the logo's own aspect ratio - a wide default logo (tezitlogo.png)
       stays readable instead of being squeezed into a tiny square. */
    width: auto;
    max-width: 170px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #fff;
    padding: 3px 5px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.tn-brand-text {
    font-family: var(--tn-font-display);
    font-weight: 800;
    font-size: clamp(1.02rem, 1.4vw, 1.4rem);
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tn-brand-text em {
    font-style: normal;
    background: var(--tn-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* nav actions (brand row right side) */
.tn-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.tn-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tn-nav-phone .tn-phone-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-grad-accent);
    color: #20120a;
    box-shadow: 0 10px 22px rgba(255, 138, 61, 0.35);
}

.tn-nav-phone .tn-phone-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.tn-nav-phone .tn-phone-meta small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.tn-nav-phone .tn-phone-meta strong {
    font-size: 0.94rem;
    color: #fff;
    font-family: var(--tn-font-display);
}

.tn-cta {
    padding: 13px 26px;
    font-size: 0.9rem;
}

/* -------------------------------------------------------- menu row ------ */
.tn-menubar {
    position: relative;
    background: linear-gradient(100deg, #15123A 0%, #221A53 55%, #2E2270 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Must stay visible: the dropdown panels render below this row.
       An `overflow: hidden` here used to clip them behind the hero banner. */
    overflow: visible;
}

.tn-menubar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 320px;
    height: 100%;
    background: radial-gradient(circle at 76% 45%, rgba(255, 138, 61, 0.35), transparent 65%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.tn-menubar-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.tn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.tn-menu > .nav-item {
    position: relative;
    flex: 0 0 auto;
}

.tn-menu > .nav-item > .nav-link,
.tn-menu > a.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    white-space: nowrap;
    transition: 0.22s ease;
    background: transparent;
}

.tn-menu > .nav-item > .nav-link:hover,
.tn-menu > a.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.tn-menu > .nav-item > .nav-link.active,
.tn-menu > a.nav-link.active {
    color: #20120a;
    background: var(--tn-grad-accent);
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.40);
}

.tn-menu > .nav-item > .nav-link.active.text-secondary,
.tn-menu > a.nav-link.active.text-secondary {
    color: #20120a;
}

/* Older layouts render the menu items as <li> without a <ul> wrapper. Without
   these rules the browser paints list bullets and the items overlap, so the
   menu row has to look the same for both markups. */
.tn-menu > li,
.tn-drawer-menu > li {
    list-style: none;
    position: relative;
    flex: 0 0 auto;
}

.tn-menu > li > a,
.tn-drawer-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    transition: 0.22s ease;
}

.tn-menu > li:hover > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.tn-menu > li.active > a,
.tn-menu > li > a.active {
    color: #20120a;
    background: var(--tn-grad-accent);
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.40);
}

.tn-menu > li > .dropdown-menu {
    display: none;
}

.tn-menu > li.show > .dropdown-menu,
.tn-menu > li:hover > .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 8px;
    border-radius: 16px;
    background: #14162E;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-lg);
    z-index: 40;
}

.tn-menu > li > .dropdown-menu > a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    white-space: nowrap;
}

.tn-menu > li > .dropdown-menu > a:hover,
.tn-menu > li > .dropdown-menu > a.active {
    color: #20120a;
    background: var(--tn-grad-accent);
}

/* Drawer list variant - full width rows, no pill shape. */
.tn-drawer-menu > li > a {
    display: block;
    width: 100%;
    padding: 11px 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
}

.tn-drawer-menu > li.active > a,
.tn-drawer-menu > li > a.active {
    color: var(--tn-accent-2);
    background: transparent;
    box-shadow: none;
}

.tn-drawer-menu > li > .dropdown-menu {
    display: none;
    padding: 4px 0 4px 14px;
}

.tn-drawer-menu > li.show > .dropdown-menu,
.tn-drawer-menu > li > .dropdown-menu.show {
    display: block;
}

.tn-drawer-menu > li > .dropdown-menu > a {
    display: block;
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
}

.tn-menu .dropdown-toggle::after {
    border-top-color: currentColor;
    opacity: 0.6;
    margin-left: 4px;
}

.tn-menu .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 14px);
    min-width: 244px;
    max-width: min(420px, 92vw);
    /* Long menus (14+ links) must scroll instead of running off screen. */
    max-height: min(58vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 138, 61, 0.55) rgba(255, 255, 255, 0.06);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    background: linear-gradient(160deg, #1B1840 0%, #17143A 100%);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s ease;
    margin-top: 0;
}

.tn-menu .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.tn-menu .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.tn-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 138, 61, 0.55);
    border-radius: 8px;
}

.tn-menu .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 138, 61, 0.8);
}

.tn-menu .nav-item.dropdown:hover > .dropdown-menu,
.tn-menu .nav-item.dropdown.show > .dropdown-menu,
.tn-menu .nav-item.dropdown:has(> .dropdown-toggle.show) > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.tn-menu .dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
}

.tn-menu .dropdown-menu .dropdown-item:hover,
.tn-menu .dropdown-menu .dropdown-item.active {
    background: rgba(255, 138, 61, 0.16);
    color: var(--tn-accent-2);
}

/* burger (mobile / overflow fallback) */
.tn-burger {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--tn-grad-accent);
    padding: 0;
    position: relative;
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.38);
    cursor: pointer;
}

.tn-burger span {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 2.5px;
    border-radius: 3px;
    background: #20120a;
    transition: 0.3s ease;
}

.tn-burger span:nth-child(1) { top: 16px; }
.tn-burger span:nth-child(2) { top: 22.5px; }
.tn-burger span:nth-child(3) { top: 29px; }

body.tn-nav-open .tn-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.tn-nav-open .tn-burger span:nth-child(2) { opacity: 0; }
body.tn-nav-open .tn-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* If the desktop menu cannot fit, collapse to the burger automatically */
html.tn-menu-overflow .tn-menubar {
    display: none;
}

html.tn-menu-overflow .tn-burger {
    display: block;
}

/* ----------------------------------------------------------- drawer ----- */
.tn-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 18, 0.62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1040;
}

.tn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(392px, 90vw);
    background: #0C0E22;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    overflow-y: auto;
}

body.tn-nav-open .tn-drawer {
    transform: translateX(0);
}

body.tn-nav-open .tn-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.tn-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tn-drawer-head .tn-brand {
    max-width: 240px;
}

.tn-drawer-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: 0.24s ease;
}

.tn-drawer-close:hover {
    background: var(--tn-grad-accent);
    color: #20120a;
    border-color: transparent;
}

.tn-drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
}

.tn-drawer-menu > .nav-item {
    display: block;
    width: 100%;
}

/* The link itself carries the "card" look so the active state fills the whole
   item exactly like the desktop amber pill. */
.tn-drawer-menu > a.nav-link,
.tn-drawer-menu > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.2s ease;
}

.tn-drawer-menu > a.nav-link:hover,
.tn-drawer-menu > .nav-item > .nav-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.tn-drawer-menu > a.nav-link.active,
.tn-drawer-menu > .nav-item > .nav-link.active {
    background: var(--tn-grad-accent);
    color: #20120a;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.40);
}

.tn-drawer-menu .dropdown-menu {
    /* Popper (Bootstrap dropdown JS) writes inline position:absolute/top/left
       which made sub-menu items float over the links below them. Force the
       submenu back into the drawer's normal flow. */
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    margin: 6px 0 0 !important;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 14px;
    min-width: 0;
    max-height: none;
    overflow-y: hidden;
    /* Long labels stay on one line (Bootstrap .dropdown-item is nowrap) and
       scroll sideways HERE instead of making the whole drawer scroll. */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 138, 61, 0.55) rgba(255, 255, 255, 0.06);
}

.tn-drawer-menu .dropdown-menu::-webkit-scrollbar {
    height: 6px;
}

.tn-drawer-menu .dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.tn-drawer-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 138, 61, 0.55);
    border-radius: 6px;
}

.tn-drawer-menu .dropdown-menu.show {
    display: block;
}

.tn-drawer-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    /* Grow with the (nowrap) label so the pill background travels with it
       while the submenu scrolls sideways. */
    width: max-content;
    min-width: 100%;
    background: transparent;
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.66);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.tn-drawer-menu .dropdown-menu .dropdown-item:hover,
.tn-drawer-menu .dropdown-menu .dropdown-item.active {
    background: rgba(255, 138, 61, 0.16);
    color: var(--tn-accent-2);
}

.tn-drawer-menu .dropdown-toggle::after {
    margin-left: auto;
    flex: 0 0 auto;
    border-top-color: currentColor;
    opacity: 0.6;
    transition: transform 0.22s ease;
}

.tn-drawer-menu > .nav-item > .nav-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.tn-drawer-menu > .nav-item > .nav-link.active::after {
    color: #20120a;
    opacity: 0.75;
}

.tn-drawer-foot {
    margin-top: auto;
    padding: 20px 22px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.tn-drawer-foot .tn-drawer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.tn-drawer-foot .tn-drawer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    word-break: break-word;
}

.tn-drawer-foot .tn-drawer-contact a:hover {
    color: #fff;
}

.tn-drawer-foot .tn-drawer-contact a i {
    color: var(--tn-accent-2);
    width: 20px;
    text-align: center;
}

/* ============================================================== HERO ===== */
.tn-hero {
    position: relative;
    background: var(--tn-ink);
    overflow: hidden;
}

.tn-hero .carousel,
.tn-hero .carousel-inner {
    position: relative;
}

.tn-hero-item {
    position: relative;
    min-height: clamp(460px, 74vh, 720px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.tn-hero-item::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Slider photo stays 95% visible - only a 5% shade so the image reads bright. */
    background:
        linear-gradient(90deg, rgba(10, 11, 28, 0.05) 0%, rgba(12, 13, 34, 0.03) 45%, rgba(14, 16, 40, 0) 100%),
        linear-gradient(0deg, rgba(10, 11, 28, 0.05) 0%, rgba(10, 11, 28, 0) 46%);
    z-index: 1;
}

/* style.css paints a 60% black sheet over every .carousel-item; for the hero
   that would hide the slide, so it is cut down to a 5% veil here. */
.tn-hero .carousel-item::after {
    background: rgba(10, 11, 28, 0.05);
}

.tn-hero-item::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(109, 91, 255, 0.55), transparent 65%);
    filter: blur(10px);
    z-index: 1;
    opacity: 0.5;
}

.tn-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 74px;
    padding-bottom: 96px;
}

.tn-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    margin-bottom: 22px;
}

.tn-hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tn-accent);
    box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.25);
}

.tn-hero-title {
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.06;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    text-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.tn-hero-title .tn-grad {
    background: var(--tn-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tn-hero-text {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.80);
    max-width: 620px;
    margin: 0 0 32px;
}

.tn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* floating glass stat card */
.tn-hero-badge {
    position: absolute;
    right: 6%;
    bottom: 46px;
    z-index: 3;
    display: flex;
    gap: 26px;
    padding: 20px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    box-shadow: var(--tn-shadow-lg);
}

.tn-hero-badge .tn-hero-badge-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 108px;
}

.tn-hero-badge .tn-hero-badge-item strong {
    font-family: var(--tn-font-display);
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}

.tn-hero-badge .tn-hero-badge-item span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* hero controls */
.tn-hero .tn-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.25s ease;
    cursor: pointer;
    backdrop-filter: blur(6px);
    opacity: 0.5;
}

.tn-hero .tn-arrow:hover {
    background: var(--tn-grad-accent);
    border-color: transparent;
    color: #20120a;
    opacity: 1;
}

.tn-hero .tn-arrow--prev { left: 26px; }
.tn-hero .tn-arrow--next { right: 26px; }

.tn-hero .tn-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-hero .tn-dots button {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
    transition: 0.25s ease;
}

.tn-hero .tn-dots .active button,
.tn-hero .tn-dots button[aria-current="true"] {
    width: 56px;
    background: var(--tn-grad-accent);
}

/* ============================================================= STATS ===== */
.tn-stats {
    position: relative;
    background:
        radial-gradient(700px 300px at 12% 20%, rgba(109, 91, 255, 0.35), transparent 60%),
        radial-gradient(700px 300px at 88% 80%, rgba(255, 138, 61, 0.28), transparent 60%),
        var(--tn-ink);
    padding: clamp(46px, 5vw, 66px) 0;
    overflow: hidden;
}

.tn-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
    content: "";
    position: absolute;
}

.tn-stat {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
    transition: 0.3s ease;
}

.tn-stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

.tn-stat .tn-stat-num {
    font-family: var(--tn-font-display);
    font-size: clamp(2.1rem, 3vw, 2.9rem);
    font-weight: 800;
    line-height: 1;
    background: var(--tn-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    min-width: 74px;
}

.tn-stat .tn-stat-label {
    font-size: 0.94rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    margin: 0;
}

/* ============================================================= ABOUT ===== */
.tn-about-media {
    position: relative;
    padding-bottom: 34px;
}

.tn-about-img-main {
    width: 84%;
    border-radius: var(--tn-radius-lg);
    box-shadow: var(--tn-shadow-lg);
    /* The picture comes from the CMS (a wide banner is common), so it is shown
       whole inside the frame instead of being cut off. */
    object-fit: contain;
    background: rgba(8, 9, 20, 0.45);
    aspect-ratio: 16 / 9;
}

.tn-about-img-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
    border-radius: var(--tn-radius);
    border: 8px solid #fff;
    box-shadow: var(--tn-shadow-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* The small picture of the About section carries the site logo, so it must not
   be cropped - the whole logo stays visible inside the white frame. */
.tn-about-img-logo {
    object-fit: contain;
    background: #fff;
}

.tn-about-frame {
    position: absolute;
    left: -14px;
    top: -14px;
    width: 190px;
    height: 190px;
    border: 3px dashed rgba(255, 138, 61, 0.40);
    border-radius: 40px;
    z-index: -1;
}

.tn-about-chip {
    position: absolute;
    left: 4%;
    bottom: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 18px;
    background: rgba(22, 20, 58, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: var(--tn-shadow-md);
}

.tn-about-chip .tn-about-chip-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-grad-brand);
    color: #fff;
    font-size: 1.05rem;
}

.tn-about-chip strong {
    display: block;
    font-family: var(--tn-font-display);
    font-size: 0.98rem;
    color: #fff;
    line-height: 1.2;
}

.tn-about-chip span {
    font-size: 0.8rem;
    color: var(--tn-muted);
}

.tn-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.tn-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.92);
}

.tn-list li i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 181, 165, 0.15);
    color: var(--tn-teal);
    font-size: 0.72rem;
    margin-top: 2px;
}

/* =========================================================== SERVICES ==== */
.tn-card {
    position: relative;
    height: 100%;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--tn-radius);
    padding: 32px 28px;
    box-shadow: var(--tn-shadow-sm);
    overflow: hidden;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.tn-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--tn-grad-brand);
    opacity: 0;
    transition: 0.35s ease;
    z-index: 0;
}

.tn-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--tn-shadow-lg);
    border-color: transparent;
}

.tn-card:hover::after {
    opacity: 0.10;
}

.tn-card > * {
    position: relative;
    z-index: 1;
}

.tn-card-ico {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--tn-accent-2);
    margin-bottom: 22px;
    transition: 0.32s ease;
}

.tn-card:hover .tn-card-ico {
    background: var(--tn-grad-accent);
    color: #20120a;
    transform: rotate(-8deg) scale(1.05);
}

.tn-card h3,
.tn-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}

.tn-card p {
    color: var(--tn-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0 0 20px;
}

.tn-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--tn-accent-2);
    text-decoration: none;
}

.tn-card-link i {
    transition: transform 0.25s ease;
}

.tn-card-link:hover {
    color: #fff;
}

.tn-card-link:hover i {
    transform: translateX(5px);
}

/* ============================================================ PROJECT ==== */
.tn-project {
    position: relative;
    display: block;
    border-radius: var(--tn-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--tn-shadow-sm);
    isolation: isolate;
    background: var(--tn-ink-2);
}

.tn-project img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 11, 28, 0.92) 0%, rgba(10, 11, 28, 0.35) 45%, rgba(10, 11, 28, 0.05) 100%);
    opacity: 0.75;
    transition: 0.4s ease;
}

.tn-project:hover img {
    transform: scale(1.09);
}

.tn-project:hover::after {
    opacity: 0.95;
}

.tn-project-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px 24px 26px;
    transform: translateY(12px);
    transition: transform 0.4s ease;
}

.tn-project:hover .tn-project-body {
    transform: translateY(0);
}

.tn-project-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(6px);
}

.tn-project-body h3 {
    color: #fff;
    font-size: 1.28rem;
    margin: 0 0 6px;
}

.tn-project-body p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-size: 0.92rem;
    opacity: 0;
    max-height: 0;
    transition: 0.4s ease;
}

.tn-project:hover .tn-project-body p {
    opacity: 1;
    max-height: 60px;
}

.tn-project-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-grad-accent);
    color: #20120a;
    font-size: 0.95rem;
    box-shadow: 0 12px 26px rgba(255, 138, 61, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    transition: 0.35s ease;
}

.tn-project:hover .tn-project-badge {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================== BLOG ===== */
.tn-post {
    height: 100%;
    background: rgba(255, 255, 255, 0.055);
    border-radius: var(--tn-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-sm);
    transition: 0.32s ease;
    display: flex;
    flex-direction: column;
}

.tn-post:hover {
    transform: translateY(-10px);
    box-shadow: var(--tn-shadow-lg);
}

.tn-post-media {
    position: relative;
    overflow: hidden;
}

.tn-post-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tn-post:hover .tn-post-media img {
    transform: scale(1.07);
}

.tn-post-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--tn-grad-accent);
    color: #20120a;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(255, 138, 61, 0.38);
}

.tn-post-date {
    position: absolute;
    bottom: -22px;
    right: 18px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--tn-grad-brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--tn-font-display);
    line-height: 1;
    box-shadow: 0 14px 30px rgba(59, 47, 191, 0.35);
    z-index: 2;
}

.tn-post-date strong {
    font-size: 1.25rem;
}

.tn-post-date span {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 3px;
}

.tn-post-body {
    padding: 34px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tn-post-body h3 {
    font-size: 1.14rem;
    margin: 0 0 12px;
    line-height: 1.4;
}

.tn-post-body h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.22s ease;
}

.tn-post-body h3 a:hover {
    color: var(--tn-accent-2);
}

.tn-post-body p {
    color: var(--tn-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0 0 20px;
    flex: 1;
}

.tn-post-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px dashed var(--tn-line);
    font-size: 0.86rem;
    color: var(--tn-muted);
}

.tn-post-foot .tn-post-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.tn-post-foot .tn-post-author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================================== TEAM ===== */
.tn-team {
    position: relative;
    background: rgba(255, 255, 255, 0.055);
    border-radius: var(--tn-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-sm);
    transition: 0.32s ease;
    height: 100%;
    text-align: center;
}

.tn-team:hover {
    transform: translateY(-8px);
    box-shadow: var(--tn-shadow-lg);
}

.tn-team-media {
    position: relative;
    padding: 26px 26px 0;
}

.tn-team-media::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: var(--tn-grad-accent);
    opacity: 0.16;
}

.tn-team-media img {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: var(--tn-shadow-md);
    margin: 0 auto;
}

.tn-team-body {
    padding: 20px 20px 26px;
}

.tn-team-body h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    color: #fff;
}

.tn-team-body span {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tn-accent-2);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
}

.tn-team-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.32s ease;
}

.tn-team:hover .tn-team-socials {
    opacity: 1;
    transform: translateY(0);
}

.tn-team-socials a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--tn-accent-2);
    text-decoration: none;
    transition: 0.25s ease;
}

.tn-team-socials a:hover {
    background: var(--tn-grad-accent);
    color: #20120a;
}

/* ======================================================= TESTIMONIAL ===== */
.tn-quote {
    position: relative;
    height: 100%;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--tn-radius);
    padding: 32px 28px 28px;
    box-shadow: var(--tn-shadow-sm);
    transition: 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tn-quote::before {
    content: "\201C";
    position: absolute;
    right: 22px;
    top: -14px;
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
}

.tn-quote:hover {
    transform: translateY(-8px);
    box-shadow: var(--tn-shadow-md);
    border-color: rgba(255, 138, 61, 0.45);
}

.tn-quote-stars {
    color: var(--tn-accent);
    font-size: 0.86rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.tn-quote-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
}

.tn-quote p {
    color: var(--tn-muted);
    line-height: 1.8;
    font-size: 0.96rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tn-quote-person {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px dashed var(--tn-line);
}

.tn-quote-person img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.20);
}

.tn-quote-person strong {
    display: block;
    font-family: var(--tn-font-display);
    font-size: 1rem;
    color: #fff;
}

.tn-quote-person span {
    font-size: 0.84rem;
    color: var(--tn-accent-2);
    font-weight: 600;
}

/* ============================================================ CONTACT ==== */
.tn-contact-info {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--tn-radius);
    padding: 24px;
    height: 100%;
    box-shadow: var(--tn-shadow-sm);
    transition: 0.3s ease;
}

.tn-contact-info:hover {
    transform: translateY(-6px);
    box-shadow: var(--tn-shadow-md);
}

.tn-contact-info .tn-contact-ico {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-grad-brand);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 14px 28px rgba(59, 47, 191, 0.28);
}

.tn-contact-info h4 {
    font-size: 1.02rem;
    margin: 2px 0 8px;
    color: #fff;
}

.tn-contact-info a,
.tn-contact-info span {
    color: var(--tn-muted);
    text-decoration: none;
    line-height: 1.65;
    font-size: 0.95rem;
    word-break: break-word;
}

.tn-contact-info a:hover {
    color: var(--tn-accent-2);
}

.tn-map {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border-radius: var(--tn-radius);
    box-shadow: var(--tn-shadow-sm);
}

.tn-form-card {
    background: var(--tn-grad-dark);
    border-radius: var(--tn-radius-lg);
    padding: clamp(28px, 3vw, 42px);
    height: 100%;
    box-shadow: var(--tn-shadow-lg);
    position: relative;
    overflow: hidden;
}

.tn-form-card::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 138, 61, 0.5), transparent 65%);
    filter: blur(6px);
}

.tn-form-card h3,
.tn-form-card p {
    position: relative;
    z-index: 1;
}

.tn-form-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.tn-form-card > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.94rem;
    margin: 0 0 24px;
}

.tn-form-card .form-control,
.tn-form-card .form-select {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 0.95rem;
}

.tn-form-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tn-form-card .form-control:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--tn-accent);
    box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.20);
    color: #fff;
}

.tn-form-card textarea.form-control {
    resize: vertical;
}

/* "Please enter <field name>" - shown right under the input that is empty. */
.tn-form-card .form-label .tn-req {
    color: var(--tn-accent);
}

.tn-form-card .form-control.is-invalid,
.tn-form-card .form-select.is-invalid {
    background: rgba(255, 92, 92, 0.10);
    border-color: rgba(255, 92, 92, 0.75);
    box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.12);
}

.tn-form-card .invalid-feedback {
    display: block;
    margin: 7px 2px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ff9c9c;
}

.tn-form-card .invalid-feedback::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 6px;
}

/* Success / error message of the contact form - shown by JavaScript after an
   AJAX submit, so the page is never reloaded. */
.tn-form-card .tn-form-alert {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.tn-form-card .tn-form-alert[hidden] {
    display: none;
}

.tn-form-card .tn-form-alert i {
    margin-top: 2px;
}

.tn-form-card .tn-form-alert--success {
    background: rgba(46, 213, 115, 0.14);
    border: 1px solid rgba(46, 213, 115, 0.55);
    color: #a8f0c6;
}

.tn-form-card .tn-form-alert--error {
    background: rgba(255, 92, 92, 0.14);
    border: 1px solid rgba(255, 92, 92, 0.55);
    color: #ffb3b3;
}

/* Inquiry stored, but the notification email did not go out. */
.tn-form-card .tn-form-alert--warning {
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.55);
    color: #ffe08a;
}

/* Disabled while the message is being sent. */
.tn-form-card .tn-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Owl carousel sets `.owl-carousel .owl-item img { width: 100% }` with higher
   specificity - keep avatars/photos properly sized inside carousels. */
.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

.owl-carousel .tn-team-media img {
    width: 168px;
    height: 168px;
    min-width: 168px;
}

.owl-carousel .tn-quote-person img {
    width: 54px;
    height: 54px;
    min-width: 54px;
}

/* ============================================================= FOOTER ==== */
.tn-footer {
    position: relative;
    background: #08091A;
    color: rgba(255, 255, 255, 0.70);
    padding-top: clamp(56px, 6vw, 84px);
    overflow: hidden;
}

.tn-footer::before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(109, 91, 255, 0.35), transparent 65%);
}

/* On a big monitor the default 1140/1320px container left a lot of empty space
   on the left and right, so the footer gets a wider container. Only the space
   changes - the content stays exactly the same. */
@media (min-width: 1400px) {
    .tn-footer > .container {
        max-width: 1380px;
    }
}

@media (min-width: 1700px) {
    .tn-footer > .container {
        max-width: 1680px;
    }
}

@media (min-width: 2000px) {
    .tn-footer > .container {
        max-width: 1900px;
    }
}

.tn-footer-col {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.tn-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}

.tn-footer-brand img {
    height: 54px;
    width: auto;
    max-width: 170px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 4px 5px;
}

.tn-footer-brand span {
    font-family: var(--tn-font-display);
    font-weight: 800;
    font-size: 1.16rem;
    color: #fff;
    line-height: 1.25;
}

.tn-footer-brand span em {
    font-style: normal;
    background: var(--tn-grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tn-footer-about {
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 22px;
    max-width: 340px;
}

/* Address opens Google Maps - keep it looking like normal footer text and
   only light up on hover / keyboard focus. */
.tn-footer-address {
    color: inherit;
    text-decoration: none;
    transition: color 0.24s ease;
}

.tn-footer-address:hover,
.tn-footer-address:focus-visible {
    color: var(--tn-accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tn-footer-socials {
    display: flex;
    gap: 10px;
}

.tn-footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    transition: 0.26s ease;
}

.tn-footer-socials a:hover {
    background: var(--tn-grad-accent);
    border-color: transparent;
    color: #20120a;
    transform: translateY(-4px);
}

.tn-footer h4 {
    position: relative;
    color: #fff;
    font-size: 1.06rem;
    margin: 0 0 22px;
    padding-bottom: 14px;
}

.tn-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--tn-grad-accent);
}

.tn-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tn-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.24s ease;
}

.tn-footer-links a i {
    color: var(--tn-accent-2);
    font-size: 0.72rem;
    transition: transform 0.24s ease;
}

.tn-footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.tn-footer-links a:hover i {
    transform: translateX(3px);
}

.tn-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tn-footer-contact li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tn-footer-contact .tn-fc-ico {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--tn-accent-2);
}

.tn-footer-contact a,
.tn-footer-contact span {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.94rem;
    word-break: break-word;
}

.tn-footer-contact a:hover,
.tn-footer-contact a:focus-visible {
    color: #fff;
}

.tn-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.88rem;
}

.tn-footer-bottom a {
    color: var(--tn-accent-2);
    text-decoration: none;
}

.tn-footer-bottom a:hover {
    text-decoration: underline;
}

.tn-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1020;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tn-grad-brand);
    color: #fff !important;
    border: 0;
    box-shadow: 0 16px 34px rgba(59, 47, 191, 0.4);
    transition: 0.28s ease;
}

.tn-back-top:hover {
    background: var(--tn-grad-accent);
    color: #20120a !important;
    transform: translateY(-4px);
}

/* ------------------------------------------- inner pages (light cards) --- */
.transfercertificate-card,
.enquiry-card,
.contact-form-wrap,
.latestevent .alert-message {
    color: var(--tn-onlight);
}

.cms-content-body {
    color: rgba(255, 255, 255, 0.86);
}

.cms-content-body h1,
.cms-content-body h2,
.cms-content-body h3,
.cms-content-body h4,
.cms-content-body h5,
.cms-content-body h6,
.cms-content-body strong,
.cms-content-body b {
    color: #fff;
}

.cms-content-body a {
    color: var(--tn-accent-2);
}

.cms-content-body table {
    color: rgba(255, 255, 255, 0.86);
}

.cms-content-body th {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.cms-content-body td,
.cms-content-body th {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================ CMS CONTENT CARDS (Summernote) */
/* Team / service / project cards written inside a page content must look the
   same as the ones on the home page. Two ways to lay them out:

   1) without a wrapper - just paste the card blocks one below another, they
      wrap into a 3 per row grid on their own;
   2) with the optional wrapper  <div class="tn-cms-grid"> ... </div>  which
      also makes every card in a row exactly the same height.

   (home page is untouched - these rules only live inside .cms-content-body)  */

.tn-cms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Inside the wrapper the grid controls width / spacing / equal heights. */
.tn-cms-grid > .tn-team,
.tn-cms-grid > .tn-card,
.tn-cms-grid > .tn-post {
    float: none;
    width: auto;
    height: auto;
    margin: 0;
}

/* No wrapper needed either: cards pasted one below another flow into a
   3 per row grid by themselves. Floats are used on purpose - they ignore the
   newlines / spaces in the pasted HTML, inline-blocks would not. */
.cms-content-body > .tn-team,
.cms-content-body > .tn-card,
.cms-content-body > .tn-post {
    float: left;
    width: calc(33.3333% - 15px);
    margin: 0 15px 30px 0;
}

/* Headings, paragraphs and anything else never sits beside a card. */
.cms-content-body > *:not(.tn-team):not(.tn-card):not(.tn-post) {
    clear: both;
}

.cms-content-body::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 1199px) {
    .tn-cms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cms-content-body > .tn-team,
    .cms-content-body > .tn-card,
    .cms-content-body > .tn-post {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .tn-cms-grid {
        grid-template-columns: 1fr;
    }

    .cms-content-body > .tn-team,
    .cms-content-body > .tn-card,
    .cms-content-body > .tn-post {
        width: calc(100% - 15px);
    }
}

/* ================================= ABOUT PAGE ============================== */
.tn-about-section {
    position: relative;
    /* the brand glow sticks out on the right - keep it from creating a
       horizontal scrollbar (that used to shift the whole page sideways) */
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 4% 6%, rgba(109, 91, 255, 0.24), transparent 62%),
        radial-gradient(820px 400px at 100% 96%, rgba(255, 138, 61, 0.14), transparent 60%),
        linear-gradient(180deg, #0D0F1E 0%, #121433 100%);
}

/* Soft brand glow behind the image card (same language as the rest of site). */
.tn-about-section::before {
    content: "";
    position: absolute;
    right: -170px;
    top: -130px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(109, 91, 255, 0.45), transparent 65%);
    filter: blur(12px);
    pointer-events: none;
}

.tn-about-section .container {
    position: relative;
    z-index: 1;
}

/* "— About Us —" line above the two columns: same lines on both sides as the
   other sections, just a little less gap because it has no title. */
.tn-about-head {
    margin-bottom: 34px;
}

/* Company logo shown under the about image, in its own small card. */
.tn-about-logo-card {
    margin-top: 18px;
    padding: 14px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tn-about-logo-card img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
    border-radius: 10px;
    padding: 0;
}

.tn-about-media-card {
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-lg);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The card hugs the image, so a wide banner is not letterboxed inside a tall
   box - the picture fills the card from edge to edge. */
.tn-about-media-card img,
.tn-about-card-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    padding: 0;
    border-radius: 12px;
    background: rgba(8, 9, 20, 0.55);
}

.tn-about-media-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    font-size: 2.4rem;
    color: var(--tn-accent-2);
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 16px;
}

.tn-about-media-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tn-muted);
}

.tn-about-panel {
    position: relative;
    padding: clamp(26px, 3vw, 40px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-md);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
}

.tn-about-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--tn-grad-brand);
    opacity: 0.12;
    pointer-events: none;
}

.tn-about-panel > * {
    position: relative;
    z-index: 1;
}

.tn-about-panel h1,
.tn-about-panel h2,
.tn-about-panel h3,
.tn-about-panel h4,
.tn-about-panel strong {
    color: #fff;
}

.tn-about-panel a {
    color: var(--tn-accent-2);
}

.tn-about-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

@media (max-width: 991px) {
    .tn-about-section::before {
        display: none;
    }

    .tn-about-media-card img {
        max-height: 340px;
    }
}

/* ------------------------------------------- ABOUT (legacy template) --------
*/
.page-content.about-us-page {
    padding: clamp(64px, 7vw, 104px) 0;
    background:
        radial-gradient(900px 420px at 4% 6%, rgba(109, 91, 255, 0.24), transparent 62%),
        radial-gradient(820px 400px at 100% 96%, rgba(255, 138, 61, 0.14), transparent 60%),
        linear-gradient(180deg, #0D0F1E 0%, #121433 100%);
    overflow: hidden;
}

.page-content.about-us-page .about-us-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.page-content.about-us-page .about-us-image-wrap {
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The old markup let the logo run out of its box (that was the "cut" image) -
   pin it inside the card, let the card hug it and never crop it. */
.page-content.about-us-page .about-us-image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 560px;
    object-fit: contain;
    padding: 0;
    border-radius: 12px;
    background: rgba(8, 9, 20, 0.55);
}

.page-content.about-us-page .about-us-content {
    position: relative;
    height: 100%;
    padding: clamp(26px, 3vw, 40px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: var(--tn-shadow-md);
    color: rgba(255, 255, 255, 0.86);
}

.page-content.about-us-page .about-us-text {
    position: relative;
    z-index: 1;
}

.page-content.about-us-page .about-us-text h1,
.page-content.about-us-page .about-us-text h2,
.page-content.about-us-page .about-us-text h3,
.page-content.about-us-page .about-us-text strong {
    color: #fff;
}

.page-content.about-us-page .about-us-text a {
    color: var(--tn-accent-2);
}

@media (max-width: 991px) {
    .page-content.about-us-page .about-us-image {
        max-height: 340px;
    }
}

/* Projects page: cards pasted in the CMS are laid out with a grid, so they sit
   3 per row with exactly the same height as the cards on the home page. */
.tn-projects-section--grid .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.tn-projects-section--grid .container > .tn-head,
.tn-projects-section--grid .container > h1,
.tn-projects-section--grid .container > h2,
.tn-projects-section--grid .container > h3,
.tn-projects-section--grid .container > p {
    grid-column: 1 / -1;
}

@media (max-width: 1199px) {
    .tn-projects-section--grid .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tn-projects-section--grid .container {
        grid-template-columns: 1fr;
    }
}

/* A click anywhere on a project card opens that project: the title link is
   stretched over the whole card, the "Read More" link stays clickable on top. */
.tn-projects-section .tn-post,
.tn-cms-grid > .tn-post {
    position: relative;
}

.tn-projects-section .tn-post-body h3 a::after,
.tn-cms-grid > .tn-post .tn-post-body h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tn-projects-section .tn-post .tn-card-link,
.tn-cms-grid > .tn-post .tn-card-link {
    position: relative;
    z-index: 2;
}

/* No author line on the project cards - "Read More" stays on the right. */
.tn-projects-section .tn-post-foot > .tn-card-link,
.tn-cms-grid > .tn-post .tn-post-foot > .tn-card-link {
    margin-left: auto;
}

/* Services page: cards pasted in the CMS are laid out with a grid, so they sit
   3 per row with exactly the same height as the cards on the home page. */
.tn-services-section--grid .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.tn-services-section--grid .container > .tn-head,
.tn-services-section--grid .container > h1,
.tn-services-section--grid .container > h2,
.tn-services-section--grid .container > h3,
.tn-services-section--grid .container > p,
.tn-cms-grid > .tn-head,
.tn-cms-grid > h1,
.tn-cms-grid > h2,
.tn-cms-grid > h3,
.tn-cms-grid > p {
    grid-column: 1 / -1;
}

@media (max-width: 1199px) {
    .tn-services-section--grid .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tn-services-section--grid .container {
        grid-template-columns: 1fr;
    }
}

/* Team page: the cards pasted in the CMS content line up 3 per row straight
   away (works even without JavaScript). The page script then wraps them into the
   very same carousel the home page uses - green arrows, autoplay, equal height. */
.tn-team-section .container > .tn-team {
    float: left;
    width: calc(33.3333% - 15px);
    margin: 0 15px 30px 0;
}

.tn-team-section .container::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 1199px) {
    .tn-team-section .container > .tn-team {
        width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .tn-team-section .container > .tn-team {
        width: calc(100% - 15px);
    }
}

/* Project card written without the author line: keep "Read More" on the right,
   exactly like the blog card on the home page. */
.cms-content-body .tn-post-foot > .tn-card-link {
    margin-left: auto;
}

/* Social icons fade in on hover - on touch screens there is no hover, so keep
   them visible there (same card as the home page). */
@media (hover: none) {
    .tn-team-socials {
        opacity: 1;
        transform: none;
    }
}

/* ============================================== RESPONSIVE (legacy list) == */
@media (max-width: 1299px) {
    .tn-brandbar-inner {
        gap: 14px;
    }

    .tn-nav-actions {
        gap: 10px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .tn-nav-phone {
        gap: 8px;
        padding-right: 12px;
    }

    .tn-nav-phone:last-of-type {
        padding-right: 0;
        border-right: 0;
    }

    .tn-nav-phone .tn-phone-ico {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .tn-nav-phone .tn-phone-meta small {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .tn-nav-phone .tn-phone-meta strong {
        font-size: 0.84rem;
    }

    .tn-menu > .nav-item > .nav-link,
    .tn-menu > a.nav-link {
        padding: 10px 11px;
        font-size: 0.9rem;
    }
}

/* Long email / number text must not push the brand out of the row. */
.tn-nav-phone .tn-phone-meta strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tn-nav-phone .tn-phone-meta {
    min-width: 0;
}

@media (max-width: 1199px) {
    .tn-hero-badge {
        display: none;
    }

    .tn-brand {
        max-width: 460px;
    }
}

@media (max-width: 991px) {
    :root {
        --tn-nav-h: 68px;
    }

    .tn-topbar {
        display: none;
    }

    .tn-menu,
    .tn-menubar,
    .tn-nav-actions .tn-cta {
        display: none;
    }

    /* Mobile / drawer view only: the contact details stay available inside
       the drawer footer, so they are dropped from the brand bar here. */
    .tn-nav-phone {
        display: none;
    }

    .tn-brandbar-inner {
        justify-content: space-between;
        gap: 12px;
        min-height: 66px;
    }

    .tn-nav-actions {
        margin-left: auto;
    }

    .tn-burger {
        display: block;
    }

    .tn-brand-logo {
        height: 46px;
        width: auto;
        max-width: 130px;
    }

    /* Slider pictures are 2.5:1 banners. On a small screen the box is given that
       same ratio (with "contain"), so the picture fills it completely - no crop
       and no empty space below it. */
    .tn-hero-item {
        min-height: 0;
        aspect-ratio: 5 / 2;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .tn-hero-content {
        padding-top: 56px;
        padding-bottom: 84px;
    }

    .tn-hero .tn-arrow {
        width: 46px;
        height: 46px;
    }

    .tn-hero .tn-arrow--prev { left: 12px; }
    .tn-hero .tn-arrow--next { right: 12px; }

    .tn-about-media {
        margin-bottom: 40px;
    }

    .tn-list {
        grid-template-columns: 1fr;
    }

    .tn-map {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    /* Slider controls take too much space over the image on phones -
       dots + swipe are enough. */
    .tn-hero .tn-arrow {
        display: none;
    }

    /* Mobile: keep the photo at ~95% visibility - only a whisper of shading
       top/bottom so dots and arrows still sit on something. */
    .tn-hero-item::before {
        background:
            linear-gradient(180deg, rgba(10, 11, 28, 0.05) 0%, rgba(10, 11, 28, 0.02) 52%, rgba(10, 11, 28, 0.06) 100%),
            linear-gradient(90deg, rgba(10, 11, 28, 0.04) 0%, rgba(10, 11, 28, 0) 100%);
    }

    /* Footer: Short Link + Help Link share one row - keep them tidy
       inside the narrower half-width columns. */
    .tn-footer h4 {
        font-size: 1rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .tn-footer-links {
        gap: 9px;
    }

    .tn-footer-links a {
        font-size: 0.87rem;
        gap: 7px;
    }

    .tn-footer-contact {
        gap: 8px;
    }

    .tn-title {
        font-size: clamp(1.6rem, 6vw, 2.1rem);
    }

    .tn-hero-title {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .tn-hero-actions .tn-btn {
        width: 100%;
        justify-content: center;
    }

    .tn-hero .tn-dots {
        bottom: 22px;
    }

    .tn-hero .tn-dots button {
        width: 26px;
    }

    .tn-stat {
        flex-direction: row;
        gap: 12px;
        padding: 16px;
    }

    .tn-about-img-main {
        width: 100%;
    }

    .tn-about-img-sub {
        position: relative;
        width: 100%;
        right: auto;
        bottom: auto;
        margin-top: 16px;
        border: 0;
    }

    .tn-about-media {
        padding-bottom: 0;
    }

    .tn-about-chip,
    .tn-about-frame {
        display: none;
    }

    .tn-card {
        padding: 26px 22px;
    }

    .tn-post-date {
        width: 54px;
        height: 54px;
        bottom: -18px;
    }

    .tn-footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .tn-back-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* style.css (legacy template) forces every carousel item to 400px on phones and
   500px on tablets, which left a big empty gap under the hero picture. The Aurora
   hero sizes itself with .tn-hero-item (aspect-ratio), so that floor is removed
   here and the dots get their own thin band under the picture. */
@media (max-width: 991px) {
    .tn-hero .carousel-item {
        min-height: 0;
    }

    .tn-hero {
        padding-bottom: 22px;
    }

    .tn-hero .tn-dots {
        bottom: 6px;
    }
}

@media (max-width: 575px) {
    .tn-brand-text {
        font-size: 0.98rem;
        white-space: normal;
        line-height: 1.15;
    }

    /* Phones: the box takes the exact ratio of the slider picture (2.5:1), so
       the banner fills it edge to edge - no empty space below it. */
    .tn-hero-item {
        min-height: 0;
        aspect-ratio: 5 / 2;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .tn-hero-content {
        padding-top: 18px;
        padding-bottom: 26px;
    }

    .tn-project img {
        aspect-ratio: 16 / 11;
    }

    .tn-quote {
        padding: 26px 22px;
    }

    .tn-contact-info {
        flex-direction: column;
        gap: 14px;
    }
}

/* -------------------------------------------------
   Showcase pages (Projects / About Team / Services)
   ------------------------------------------------- */
.showcase {
    padding: 6px 0 14px;
}

.showcase-eyebrow {
    display: inline-block;
    font-family: var(--tn-font-display);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--tn-brand-2);
    margin-bottom: 12px;
}

.showcase-title {
    font-family: var(--tn-font-display);
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 38px);
    color: var(--tn-ink);
    margin-bottom: 14px;
}

.showcase-rule {
    display: inline-block;
    width: 78px;
    height: 5px;
    border-radius: 999px;
    background: var(--tn-grad-accent);
}

.showcase-hero {
    margin-bottom: 34px;
}

.showcase-media {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: var(--tn-radius-lg);
    overflow: hidden;
    box-shadow: var(--tn-shadow-lg);
    background: var(--tn-grad-dark);
    display: flex;
}

.showcase-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.showcase-media-placeholder {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 28px;
}

.showcase-media-placeholder i {
    font-size: 54px;
    opacity: 0.9;
}

.showcase-media-placeholder span {
    font-family: var(--tn-font-display);
    font-size: 20px;
    font-weight: 600;
    max-width: 260px;
}

.showcase-panel {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(14, 16, 32, 0.07);
    border-radius: var(--tn-radius-lg);
    box-shadow: var(--tn-shadow-md);
    padding: clamp(24px, 3vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--tn-ink);
}

.showcase-empty {
    color: var(--tn-muted);
    font-size: 16px;
    line-height: 1.8;
}

.showcase .program-gallery-grid img {
    border-radius: var(--tn-radius);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase .program-gallery-grid a:hover img {
    transform: translateY(-4px);
    box-shadow: var(--tn-shadow-lg);
}

@media (max-width: 991px) {
    .showcase-media,
    .showcase-media img,
    .showcase-media-placeholder {
        min-height: 240px;
    }
}
