/* ==================================================================
   The Gate for Training Services - FOOTER
   ================================================================== */
.tg-footer { position: relative; margin-top: 90px; color: #C9D1DC; background: radial-gradient(1200px 600px at 85% 0%, #2A3B55 0%, transparent 60%), radial-gradient(900px 500px at 10% 100%, #27354A 0%, transparent 60%), linear-gradient(180deg, #1E2A3A 0%, #141C27 100%); overflow: visible; isolation: isolate; }
.tg-footer-inner { position: relative; z-index: 2; padding-bottom: 48px; }

/* clipped background layer: glows + dotted grid */
.tg-footer-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.tg-footer-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1; }
.tg-footer-glow-1 { width: 520px; height: 520px; background: rgba(238,122,28,.22); top: -140px; inset-inline-end: -120px; animation: tgFloat 16s ease-in-out infinite; }
.tg-footer-glow-2 { width: 420px; height: 420px; background: rgba(15,138,126,.22); bottom: -160px; inset-inline-start: -100px; animation: tgFloat2 18s ease-in-out infinite; }
.tg-footer-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }

/* newsletter strip - floats across the wave */
.tg-footer-cta { position: relative; z-index: 3; transform: translateY(-56px); margin-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; background: linear-gradient(120deg, #EE7A1C 0%, #F59A4B 100%); background-size: 200% 200%; animation: tgGradient 10s ease infinite; color: #fff; box-shadow: 0 24px 60px rgba(238,122,28,.35), 0 0 0 1px rgba(255,255,255,.15) inset; }
.tg-footer-cta[data-reveal].is-in { transform: translateY(-56px); }
.tg-footer-cta .mud-typography { color: #fff; }
.tg-footer-cta-text { display: flex; align-items: center; gap: 18px; min-width: 280px; flex: 1 1 360px; }
.tg-footer-cta-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; backdrop-filter: blur(6px); animation: tgBob 4s ease-in-out infinite; }
.tg-footer-cta-icon .mud-icon-root { font-size: 2rem; width: 2rem; height: 2rem; }
.tg-footer-cta-sub { color: rgba(255,255,255,.85) !important; }
.tg-footer-form { direction: ltr; flex: 1 1 380px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-width: 520px; }
.tg-footer-form-icon { color: #EE7A1C; flex-shrink: 0; }
.tg-footer-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: #1E2A3A; padding: 10px 4px; }
.tg-footer-form input::placeholder { color: #8F9AAA; }
.tg-footer-form .mud-button { border-radius: 999px; padding: 10px 22px; }

/* brand */
.tg-footer-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; margin-bottom: 18px; background: #fff; border-radius: 18px; padding: 10px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.tg-footer-brand img { height: 64px; width: auto; transition: transform .4s var(--tg-ease); }
.tg-footer-brand:hover img { transform: rotate(-6deg) scale(1.06); }
.tg-footer-brand > span { display: flex; flex-direction: column; line-height: 1.2; }
.tg-footer-brand-ar { font-weight: 800; font-size: 1.1rem; color: #fff; }
.tg-footer-brand-en { font-size: .74rem; color: #8F9AAA; letter-spacing: .03em; }
.tg-footer-text { color: #AEB8C6 !important; max-width: 420px; }

/* social */
.tg-footer-social { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.tg-footer-social a { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #C9D1DC; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--tg-ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.tg-footer-social a:hover { transform: translateY(-4px) rotate(6deg); background: #EE7A1C; border-color: #EE7A1C; color: #fff; box-shadow: 0 10px 24px rgba(238,122,28,.4); }
.tg-footer-social a.tg-footer-social-wa:hover { background: #25D366; border-color: #25D366; box-shadow: 0 10px 24px rgba(37,211,102,.4); }

/* column titles + links */
.tg-footer-title { color: #fff; font-weight: 800; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.tg-footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #EE7A1C, #FFB873); }
.tg-footer-links { list-style: none; padding: 0; margin: 0; }
.tg-footer-links li { padding: 0; }
.tg-footer-links a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; color: #C9D1DC; transition: color .25s ease, transform .3s var(--tg-ease); }
.tg-footer-links a .mud-icon-root { color: #EE7A1C; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--tg-ease); }
html[dir="rtl"] .tg-footer-links a .mud-icon-root { transform: translateX(6px); }
.tg-footer-links a:hover { color: #fff; transform: translateX(6px); }
html[dir="rtl"] .tg-footer-links a:hover { transform: translateX(-6px); }
.tg-footer-links a:hover .mud-icon-root { opacity: 1; transform: none; }
.tg-footer-cats a { gap: 10px; }
.tg-footer-cat-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.tg-footer-count { margin-inline-start: auto; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border-radius: 999px; padding: 1px 9px; }
.tg-footer-cats a:hover .tg-footer-count { background: #EE7A1C; }

/* contact */
.tg-footer-contact { list-style: none; padding: 0; margin: 0; }
.tg-footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: #C9D1DC; }
.tg-footer-contact a { color: #C9D1DC; }
.tg-footer-contact a:hover { color: #FFB873; }
.tg-footer-chip { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #EE7A1C; background: rgba(238,122,28,.12); border: 1px solid rgba(238,122,28,.25); transition: transform .3s var(--tg-ease), background .3s ease, color .3s ease; }
.tg-footer-contact li:hover .tg-footer-chip { transform: translateY(-3px) rotate(-6deg); background: #EE7A1C; color: #fff; }
.tg-footer-hours { color: #fff; font-weight: 700; }

/* accreditation badges */
.tg-footer-badges { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg-footer-badges-label { color: #8F9AAA; font-size: .85rem; margin-inline-end: 6px; }
.tg-footer-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); color: #E8ECF2; font-size: .85rem; font-weight: 600; transition: transform .3s var(--tg-ease), background .3s ease, border-color .3s ease; }
html[dir="rtl"] .tg-footer-badge { padding: 8px 8px 8px 16px; }
.tg-footer-badge img { height: 34px; width: 34px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; }
.tg-footer-badge:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(238,122,28,.6); }

/* bottom bar */
.tg-footer-bottom { position: relative; z-index: 2; background: rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.06); color: #8F9AAA; font-size: .85rem; }
.tg-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.tg-footer-legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tg-footer-legal a { color: #AEB8C6; position: relative; }
.tg-footer-legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #EE7A1C; transform: scaleX(0); transition: transform .3s var(--tg-ease); }
.tg-footer-legal a:hover { color: #fff; }
.tg-footer-legal a:hover::after { transform: scaleX(1); }
.tg-footer-lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.tg-footer-lang:hover { background: #EE7A1C; border-color: #EE7A1C; }
.tg-footer-top { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .3s var(--tg-ease), background .3s ease; }
.tg-footer-top:hover { transform: translateY(-4px); background: #EE7A1C; border-color: #EE7A1C; }
.tg-footer-top .mud-icon-root { animation: tgBob 2.4s ease-in-out infinite; }

@media (max-width: 600px) {
    .tg-footer-cta { padding: 22px; transform: translateY(-36px); }
    .tg-footer-cta[data-reveal].is-in { transform: translateY(-36px); }
    .tg-footer-form { padding: 4px; }
    .tg-footer-form-icon { display: none; }
    .tg-footer-form input { padding-inline: 12px; }
    .tg-footer-bottom-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-footer-glow, .tg-footer-cta, .tg-footer-cta-icon, .tg-footer-top .mud-icon-root { animation: none !important; }
}
