/* Additions on top of site.css (the unchanged compiled Tailwind CSS of the old React site). */

body { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 80px; }
.gl-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--color-primary); font-weight: 700; box-shadow: var(--shadow-lg); }
.gl-skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Header on scroll (the React header did the same). */
[data-gl-header].is-scrolled { background: rgb(255 255 255 / .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 24px -12px rgba(14,138,75,.18); }

/* Language switch (new: the old site had only Bangla). */
.gl-lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; color: var(--color-primary); font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.gl-lang:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.gl-lang-short { display: none; }
@media (max-width: 639px) { .gl-lang { padding: 0 11px; } .gl-lang-long { display: none; } .gl-lang-short { display: inline; } }

/* Floating contact menu. */
.gl-fab-item { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); border: 1px solid var(--color-border); color: var(--color-foreground); text-align: right; animation: gl-pop .2s ease-out both; }
.gl-fab-item:hover { transform: translateY(-1px); }
.gl-fab-text { display: flex; flex-direction: column; line-height: 1.25; }
.gl-fab-text small { font-size: 11px; color: var(--color-muted-foreground); }
.gl-fab-text b { font-size: 13px; }
.gl-fab-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: #fff; flex: none; }
@keyframes gl-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
body.single-gl_doctor .gl-fab { bottom: 84px; }
@media (min-width: 768px) { body.single-gl_doctor .gl-fab { bottom: 24px; } }

/* Booking pop-up. */
.gl-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gl-modal-bg { position: absolute; inset: 0; background: rgb(0 0 0 / .5); backdrop-filter: blur(2px); }
.gl-modal-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; animation: gl-pop .2s ease-out both; }
body.gl-noscroll { overflow: hidden; }
.gl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[data-gl-form] .gl-invalid { border-color: var(--color-destructive) !important; box-shadow: 0 0 0 3px rgb(220 38 38 / .12); }
.gl-form-msg { padding: 10px 12px; border-radius: 12px; background: #fdecec; }
.gl-spin { animation: spin 1s linear infinite; }

/* Video reviews: thumbnail until clicked (no YouTube load on page view). */
.gl-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Doctor lists: same card heights, search state. */
[data-gl-doclist] > article[hidden] { display: none !important; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* Rich text from the editor (about/bio) — paragraphs keep spacing when wpautop wraps them. */
.gl-rich p + p { margin-top: .75rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Utilities the old build did not contain. */
.\!py-2\.5 { padding-top: .625rem !important; padding-bottom: .625rem !important; }
.hover\:bg-white\/15:hover { background-color: rgb(255 255 255 / .15); }
