/*
 * A hospital's own page (templates/single-liv-hospitals.html) in the new design (owner 2026-11-20; Figma "Yeni
 * Tasarım" → page "Hospital Detail · Liv Hospital Ulus" → "Hospital Detail · 1440 Desktop"), drawn with the measures
 * of the hospitals page (assets/css/livcom-page-hospitals.css): section titles in the Liv colour, the panels with
 * cards in the light-blue panel of "Find a hospital", white cards with a hairline and 16px corners, pill buttons,
 * and under "Other hospitals" the cards of the hospitals page.
 *
 * Order (Figma): the band (title, accreditations), the path, "Contact this hospital", the photo, "At a glance",
 * "About Us", "Featured Departments and Areas of Expertise", the videos, "Other hospitals" (no closing line: owner
 * 2026-11-20).
 * Loaded on a hospital's page only (inc/livcom-page-hospitals.php), after hospitals.css and livcom-page-hospitals.css.
 */

.liv-hospital { --lc-hosp-brand: #0082B9; }

/* Room between the sections (Figma: 48 above and below each): 48 between the parts of the page, the band and the
   path keep theirs. */
.liv-hospital > :is(.lc-hospital-photo, .liv-cat__content, .liv-hospital-others) { margin-block-start: 24px !important; }
.liv-hospital > .liv-cat__content { gap: 48px; }
.liv-hospital > :last-child { margin-block-end: 56px !important; }

/* ---------- Sections: on white, the title in the Liv colour ---------- */
.liv-hospital :is(.is-style-section, .is-style-section-white) { gap: 20px; padding: 0; border-radius: 0; background: transparent; }
.liv-hospital :is(.is-style-section, .is-style-section-white) > h2.wp-block-heading { margin: 0; color: var(--lc-hosp-brand); font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: 0; -webkit-text-stroke-width: 0; }
.liv-hospital .is-style-section > p { color: #22303A; font-size: 16px; line-height: 1.6; }

/* The sections with cards (At a glance, Featured departments): the light-blue panel of "Find a hospital". */
.liv-hospital .is-style-section:has(> .liv-tiles) { position: relative; isolation: isolate; gap: 24px; padding: 32px 36px; overflow: hidden; border: 1px solid #D6ECF6; border-radius: 24px; background: linear-gradient(120deg, #EEFAFF 0%, #F7FCFF 55%, #E6F5FC 100%); }
.liv-hospital .is-style-section:has(> .liv-tiles)::before { content: ""; position: absolute; z-index: -1; inset-block-start: -120px; inset-inline-end: -80px; inline-size: 340px; block-size: 340px; border-radius: 50%; background: radial-gradient(circle, rgb(0 130 185 / 0.12), rgb(0 130 185 / 0) 70%); pointer-events: none; }

/* Cards: white, hairline, 16px corners; the title 18 in the page's ink, the text 14. */
.liv-hospital .liv-tiles { gap: 16px; }
.liv-hospital .liv-tiles .liv-tile { gap: 8px; min-block-size: 0; padding: 18px 20px; border: 1px solid #DCE4EA; border-radius: 16px; background: #FFFFFF; transition: border-color 0.15s, box-shadow 0.15s; }
.liv-hospital .liv-tiles .liv-tile:hover { border-color: #B9DDEE; box-shadow: 0 10px 28px rgb(0 70 102 / 0.08); }
.liv-hospital .liv-tiles .liv-tile h3.wp-block-heading { color: #163B4D; font-size: 18px; line-height: 1.35; font-weight: 700; }
.liv-hospital .liv-tiles .liv-tile p, .liv-hospital .liv-tiles .liv-tile :is(ul, ol) { color: #566F7A; font-size: 14px; line-height: 1.5; }

/* Buttons: pills; the first filled, the others outlined in the Liv colour. */
.liv-hospital .wp-block-buttons.liv-hospital__actions { gap: 10px; }
.liv-hospital .liv-hospital__actions .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: 46px; padding: 0 22px; border: 1.5px solid var(--lc-hosp-brand); border-radius: 999px; background: var(--lc-hosp-brand); color: #FFFFFF; font-size: 15px; line-height: 1; font-weight: 700; transition: background-color 0.15s, color 0.15s; }
.liv-hospital .liv-hospital__actions .wp-block-button__link:hover { border-color: #05658B; background: #05658B; color: #FFFFFF; }
.liv-hospital .liv-hospital__actions .wp-block-button.is-secondary .wp-block-button__link { background: #FFFFFF; color: var(--lc-hosp-brand); }
.liv-hospital .liv-hospital__actions .wp-block-button.is-secondary .wp-block-button__link:hover { border-color: var(--lc-hosp-brand); background: #EEFAFF; color: var(--lc-hosp-brand); }

/* ---------- Contact this hospital: the form in a white card with a hairline ---------- */
.liv-hospital .liv-hospital-contact .liv-cat-opinion__card { gap: 16px; inline-size: min(100%, 600px); padding: 24px; border: 1px solid #DCE4EA; border-radius: 16px; background: #FFFFFF; box-shadow: 0 10px 28px rgb(0 70 102 / 0.06); }
.liv-hospital .liv-hospital-contact .liv-cat-opinion__card > h3.wp-block-heading { color: var(--lc-hosp-brand); font-size: 20px; line-height: 1.3; font-weight: 700; }
/* The photo beside the form (owner 2026-11-20: "formu görselin ... yan yana"): the photo at the start, as high as
   the form, the form card at the end (about 460 of the column's 1120). Tablets and phones: the photo above. */
.liv-hospital .liv-hospital-contact__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: stretch; gap: 24px; }
.liv-hospital .liv-hospital-contact__row > * { margin: 0 !important; }
.liv-hospital .liv-hospital-contact__row .liv-cat-opinion__card { inline-size: auto; }
.liv-hospital .liv-hospital-contact__photo { position: relative; min-block-size: 320px; overflow: hidden; border-radius: 16px; background: #E4F2F9; }
.liv-hospital .liv-hospital-contact__photo img { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; }
.liv-hospital .lc-hospital-photo .liv-hospital-contact__photo img { position: static; block-size: auto; aspect-ratio: 1566 / 495; }
@media (max-width: 1023.98px) {
	.liv-hospital .liv-hospital-contact__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.liv-hospital .liv-hospital-contact__photo { min-block-size: 0; aspect-ratio: 16 / 9; }
}

/* ---------- The photo ---------- */
.liv-hospital .lc-hospital-photo .liv-cat-hero__image img { border-radius: 16px; }

/* ---------- Videos ---------- */
.liv-hospital .liv-hospital__videos .wp-block-embed__wrapper { border-radius: 16px; }

/* ---------- Other hospitals: the cards of the hospitals page, three in a row ---------- */
.liv-hospital .liv-hospital-others ul.lc-hgrid__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.liv-hospital .liv-hospital-others .lc-hgrid__item { display: block; min-inline-size: 0; margin: 0; padding: 0; }
.liv-hospital .liv-hospital-others .lc-hgrid__item::marker { content: ""; }
.liv-hospital-others .lc-hcard :is(h3, p, figure, dl, dd) { margin: 0; }
.liv-hospital-others .lc-hcard a { text-decoration: none; }
.liv-hospital-others .lc-hcard__name { padding: 0; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: 0; -webkit-text-stroke-width: 0; }
.liv-hospital-others .lc-hcard__glance-head strong { font-size: 18px; }
.liv-hospital-others .lc-hcard__stat { padding: 10px 12px; }
.liv-hospital-others .lc-hcard__stat:not(.is-accreditation) dd { font-size: 20px; }


/* ---------- Tablets and phones ---------- */
@media (max-width: 1023.98px) {
	.liv-hospital .liv-hospital-others ul.lc-hgrid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.liv-hospital .liv-hospital-others .lc-hgrid__item:nth-child(n+3) { display: none; }
}
@media (max-width: 767.98px) {
	.liv-hospital > :is(.lc-hospital-photo, .liv-cat__content, .liv-hospital-others) { margin-block-start: 8px !important; }
	.liv-hospital > .liv-cat__content { gap: 32px; }
	.liv-hospital > :last-child { margin-block-end: 40px !important; }
	.liv-hospital :is(.is-style-section, .is-style-section-white) > h2.wp-block-heading { font-size: 24px; }
	.liv-hospital .is-style-section > p { font-size: 15px; }
	.liv-hospital .is-style-section:has(> .liv-tiles) { gap: 16px; padding: 20px 16px; border-radius: 20px; }
	.liv-hospital .liv-tiles .liv-tile { padding: 16px; }
	.liv-hospital .liv-hospital-contact .liv-cat-opinion__card { padding: 16px; }
	.liv-hospital .liv-hospital-others ul.lc-hgrid__list { grid-template-columns: minmax(0, 1fr); }
	.liv-hospital .liv-hospital-others .lc-hgrid__item:nth-child(n+3) { display: block; }
	.liv-hospital .liv-hospital__actions .wp-block-button__link { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.liv-hospital .liv-tiles .liv-tile { transition: none; }
}
