/* ============================================================
   TT PAGE — inner pages (services, About section, certifications,
   events). Hero + readable prose column + sticky sidebar.
   Reuses .lm-toc from tt-blog.css and tokens from the design system.
   ============================================================ */
.tt-page { background: #fff; }

/* ---------- hero ---------- */
.tt-page-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: linear-gradient(115deg, var(--tt-navy, #0A1628) 0%, #10305F 45%, var(--tt-blue, #1E5DAB) 100%); }
.tt-page-hero-glow { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 90% at 90% 10%, rgba(255,255,255,.12), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(200,169,81,.18), transparent 60%); }
.tt-page-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.tt-page-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.tt-page-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.tt-page-crumbs a:hover { color: #fff; text-decoration: underline; }
.tt-page-crumbs [aria-current] { color: #fff; font-weight: 600; }
.tt-page-eyebrow { display: inline-block; margin-bottom: .9rem; padding: .35rem .9rem; border-radius: 9999px; background: rgba(200,169,81,.16); border: 1px solid rgba(200,169,81,.45); color: var(--tt-gold-light, #E5C76B); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.tt-page-title { margin: 0 0 1rem; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.2; font-weight: 800; color: #fff; }
.tt-page-lead { margin: 0; max-width: 760px; font-size: 1.125rem; line-height: 1.8; color: rgba(255,255,255,.86); }
.tt-page-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.tt-action-gold { background: var(--tt-gold, #C8A951); color: var(--tt-navy, #0A1628); }
.tt-action-gold:hover { background: var(--tt-gold-light, #E5C76B); color: var(--tt-navy, #0A1628); transform: translateY(-1px); }
.tt-action-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.tt-action-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.tt-action-white { background: #fff; color: var(--tt-blue, #1E5DAB); }
.tt-action-white:hover { background: var(--tt-blue-light, #E8F0FE); color: var(--tt-blue-hover, #164A8A); }
.tt-action-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.tt-action-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- layout ---------- */
.tt-page-body { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.tt-page-layout { display: flex; align-items: flex-start; gap: clamp(2rem, 4vw, 3.5rem); }
.tt-page-main { flex: 1 1 auto; min-width: 0; max-width: 820px; }
.tt-page-side { flex: 0 0 320px; width: 320px; align-self: stretch; }
.tt-page-sticky { position: sticky; top: 2rem; display: grid; gap: 1.25rem; }
.admin-bar .tt-page-sticky { top: calc(2rem + 32px); }

/* ---------- prose ---------- */
.tt-prose { font-size: 1.0625rem; line-height: 1.95; color: #000; }
[dir="rtl"] .tt-prose { font-size: 1.1rem; line-height: 2; }
.tt-prose > p:first-child { font-size: 1.2rem; line-height: 1.85; color: #000; font-weight: 500; }
.tt-prose p { margin: 0 0 1.25rem; }
.tt-prose h2 { position: relative; margin: 2.75rem 0 1rem; padding-bottom: .6rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.35; font-weight: 800; color: var(--tt-navy, #0A1628); scroll-margin-top: 2rem; }
.tt-prose h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--tt-blue, #1E5DAB), var(--tt-gold, #C8A951)); }
.tt-prose h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; font-weight: 700; color: var(--tt-blue-hover, #164A8A); scroll-margin-top: 2rem; }
.tt-prose h4 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; font-weight: 700; color: var(--tt-navy, #0A1628); }
.tt-prose a { color: var(--tt-blue, #1E5DAB); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(30,93,171,.35); text-underline-offset: 3px; }
.tt-prose a:hover { color: var(--tt-blue-hover, #164A8A); text-decoration-color: currentColor; }
.tt-prose strong { color: var(--tt-navy, #0A1628); font-weight: 700; }
.tt-prose ul, .tt-prose ol { margin: 0 0 1.5rem; padding: 0; }
.tt-prose ul { list-style: none; }
.tt-prose ul > li { position: relative; padding-inline-start: 2rem; margin-bottom: .6rem; }
.tt-prose ul > li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 20px; height: 20px; border-radius: 50%; background: var(--tt-blue-light, #E8F0FE) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5DAB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center/12px no-repeat; }
.tt-prose ul > li > strong:first-child { color: var(--tt-blue-hover, #164A8A); }
.tt-prose ol { list-style: decimal; padding-inline-start: 1.5rem; }
.tt-prose ol > li { margin-bottom: .6rem; padding-inline-start: .35rem; }
.tt-prose ol > li::marker { font-weight: 800; color: var(--tt-blue, #1E5DAB); }
.tt-figure { margin: 2rem 0; }
.tt-figure img { display: block; width: 100%; height: auto; border-radius: var(--tt-radius-xl, 1rem); box-shadow: var(--tt-shadow-lg, 0 8px 24px rgba(10,22,40,.1)); }
.tt-prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--tt-gold, #C8A951); background: #FBF8EF; border-radius: .75rem; color: #1A1A1A; font-style: normal; }
.tt-prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .95rem; }
.tt-prose th, .tt-prose td { padding: .75rem .9rem; border: 1px solid var(--tt-border-light, #E8EDF5); text-align: start; vertical-align: top; }
.tt-prose th { background: var(--tt-blue-light, #E8F0FE); color: var(--tt-navy, #0A1628); font-weight: 700; }
.tt-prose tr:nth-child(even) td { background: #F8FAFC; }
.tt-prose hr { border: 0; border-top: 1px solid var(--tt-border-light, #E8EDF5); margin: 2.5rem 0; }

/* ---------- bottom CTA ---------- */
.tt-page-cta { margin-top: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.25rem 2.5rem; border-radius: var(--tt-radius-2xl, 1.5rem); color: #fff;
    background: linear-gradient(115deg, var(--tt-navy, #0A1628), var(--tt-blue, #1E5DAB)); box-shadow: var(--tt-shadow-xl, 0 16px 48px rgba(10,22,40,.12)); }
.tt-page-cta h2 { margin: 0 0 .4rem; font-size: 1.4rem; font-weight: 800; color: #fff; }
.tt-page-cta p { margin: 0; color: rgba(255,255,255,.85); }
.tt-page-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; flex: 0 0 auto; }

/* ---------- sidebar ---------- */
.tt-side-card { background: #fff; border: 1px solid var(--tt-border-light, #E8EDF5); border-radius: var(--tt-radius-xl, 1rem); padding: 1.5rem; box-shadow: var(--tt-shadow-sm, 0 1px 3px rgba(10,22,40,.06)); }
.tt-side-title { margin: 0 0 1rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4B5563; }
[dir="rtl"] .tt-side-title { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.tt-side-card .lm-toc { max-height: 46vh; overflow: auto; padding-inline-end: .25rem; }
.tt-side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tt-side-nav a { display: block; padding: .6rem .85rem; border-radius: .6rem; color: var(--tt-navy, #0A1628); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.tt-side-nav a:hover { background: var(--tt-blue-light, #E8F0FE); color: var(--tt-blue, #1E5DAB); }
.tt-side-nav a.is-current { background: var(--tt-blue, #1E5DAB); color: #fff; }
.tt-side-quote { color: #fff; border: 0; background: linear-gradient(160deg, var(--tt-navy, #0A1628), #143A78); }
.tt-side-quote h2 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; color: #fff; }
.tt-side-quote p { margin: 0 0 1.25rem; font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.82); }
.tt-side-quote .tt-action { width: 100%; justify-content: center; margin-bottom: 1rem; }
.tt-side-contact { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; color: #fff; font-weight: 700; text-decoration: none; border-top: 1px solid rgba(255,255,255,.12); }
.tt-side-contact svg { color: var(--tt-gold-light, #E5C76B); }
.tt-side-contact:hover { color: var(--tt-gold-light, #E5C76B); }
.tt-iso-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-iso-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 9999px; background: var(--tt-blue-light, #E8F0FE); color: var(--tt-blue-hover, #164A8A); font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; }
.tt-iso-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tt-gold, #C8A951); }
.tt-iso-chip:hover { background: var(--tt-blue, #1E5DAB); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .tt-page-layout { flex-direction: column; }
    .tt-page-side { width: 100%; flex-basis: auto; }
    .tt-page-sticky { position: static; grid-template-columns: repeat(2, 1fr); }
    .tt-page-main { max-width: none; }
}
@media (max-width: 640px) {
    .tt-page-sticky { grid-template-columns: 1fr; }
    .tt-page-cta { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
    .tt-prose > p:first-child { font-size: 1.1rem; }
}

/* ---------- photo gallery + lightbox ---------- */
.tt-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 2rem 0; }
.tt-gallery-item { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--tt-radius-lg, .75rem); background: var(--tt-blue-light, #E8F0FE); box-shadow: var(--tt-shadow-sm, 0 1px 3px rgba(10,22,40,.06)); }
.tt-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.23,1,.32,1); }
.tt-gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.35), transparent 55%); opacity: 0; transition: opacity .3s; }
.tt-gallery-item:hover img { transform: scale(1.06); }
.tt-gallery-item:hover::after { opacity: 1; }
.tt-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(5,10,20,.92); padding: 3rem; }
.tt-lightbox[hidden] { display: none; }
.tt-lightbox img { max-width: min(100%, 1200px); max-height: 100%; border-radius: .75rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tt-lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; cursor: pointer; transition: background .2s; }
.tt-lightbox-btn:hover { background: rgba(255,255,255,.25); }
.tt-lightbox-close { top: 1.25rem; inset-inline-end: 1.25rem; }
.tt-lightbox-prev { inset-inline-start: 1.25rem; top: 50%; transform: translateY(-50%); }
.tt-lightbox-next { inset-inline-end: 1.25rem; top: 50%; transform: translateY(-50%); }
.tt-lightbox-count { position: absolute; bottom: 1.25rem; inset-inline-start: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 600; }

/* ---------- child pages grid (e.g. events) ---------- */
.tt-child-section { margin-top: 3rem; }
.tt-child-title { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 800; color: var(--tt-navy, #0A1628); }
.tt-child-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tt-child-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tt-border-light, #E8EDF5); border-radius: var(--tt-radius-xl, 1rem); overflow: hidden; text-decoration: none; box-shadow: var(--tt-shadow-sm, 0 1px 3px rgba(10,22,40,.06)); transition: transform .3s, box-shadow .3s; }
.tt-child-card:hover { transform: translateY(-4px); box-shadow: var(--tt-shadow-lg, 0 8px 24px rgba(10,22,40,.1)); }
.tt-child-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tt-blue-light, #E8F0FE); }
.tt-child-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-child-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem 1.4rem; }
.tt-child-heading { font-size: 1.05rem; font-weight: 800; color: var(--tt-navy, #0A1628); line-height: 1.45; }
.tt-child-text { font-size: .925rem; line-height: 1.7; color: #111; }
.tt-child-more { margin-top: auto; padding-top: .35rem; font-size: .875rem; font-weight: 700; color: var(--tt-blue, #1E5DAB); }
[dir="rtl"] .tt-child-more span { display: inline-block; transform: scaleX(-1); }
@media (max-width: 640px) { .tt-gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; } .tt-child-grid { grid-template-columns: 1fr; } .tt-lightbox { padding: 3.5rem 1rem; } }
