/*
 * Travinger — sitewide section title/subtitle centering.
 *
 * Reference pattern: template-parts/product/how-it-works.php ("How to
 * Activate eSIM?") — its wrapper (.smyk-pp-hiw__header) is text-align:center
 * with the whole block centered via margin:0 auto. Most other sections never
 * got that treatment and default to text-align:left, so headings/subtitles
 * were inconsistent across the site.
 *
 * .smyk-section-heading (used by ~9 files — product description/faq/
 * plans-table/reviews, home destinations, several blog parts) was ALREADY
 * centered in simyak-theme.css and needs no change; it is not repeated here.
 *
 * This file centers every OTHER genuine section-intro heading + subtitle
 * pair (one per template part, sitting at the top of a full <section>) found
 * across home/, product/ and pages/ template-parts. `margin-left/right:auto`
 * is added defensively on every rule — a no-op unless that element also has
 * a constrained width, in which case it keeps the BOX itself centered, not
 * just the text inside it. Subtitle paragraphs also get a ~760px measure
 * (matching the how-it-works subtitle's effective width) so a long
 * multi-line subtitle doesn't stretch edge-to-edge once centered.
 *
 * Deliberately NOT touched (not a page "section" in this sense):
 *   - Modal titles (cookie-consent, login-modal) and the contact form's own
 *     heading — functional UI, not a marketing section intro.
 *   - Repeated per-item/per-panel headings that appear many times in one
 *     file (esim-setup-page's step panels, mission's per-column heading,
 *     contact.php's repeated support-card titles) — centering each
 *     individually isn't the same thing as centering a section intro.
 *   - Hero titles (h1-based: home hero, destinations-catalogue hero) — a
 *     different, already-bespoke layout pattern, out of scope here.
 *
 * Loaded last (priority 999 on wp_enqueue_scripts) + !important so this wins
 * regardless of a given section stylesheet's own load order.
 */

/* ---- Home sections ---- */
.smyk-bt__heading, .smyk-faq__heading, .smyk-fr__heading, .smyk-why__heading,
.smyk-how__heading, .smyk-top__heading, .smyk-we__heading,
/* ---- Product-page sections ---- */
.smyk-cmp__title, .smyk-cov__heading, .smyk-cta__heading, .smyk-pp-app__title,
/* ---- Blog ---- */
.smyk-bl-hero__title,
/* ---- Standalone marketing pages ---- */
.smyk-afb__title, .smyk-afc__title, .smyk-affaq__title, .smyk-afst__title, .smyk-afw__title,
.smyk-bn__heading, .smyk-diff__heading, .smyk-ex__heading, .smyk-efaq__heading, .smyk-my__heading,
.esvs__heading, .smyk-qn__heading, .htc__heading, .smyk-kb__heading, .smyk-pa__heading,
.smyk-story__heading, .smyk-rv-cta__heading, .smyk-rv-featured__title,
.sfq-hiw__title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.smyk-bt__subtitle, .smyk-faq__subtitle, .smyk-why__sub, .smyk-top__subtitle,
.smyk-cmp__sub, .smyk-cov__subtitle, .smyk-pp-app__sub,
.smyk-brp__sub,
.smyk-afb__sub, .smyk-afc__sub, .smyk-afst__sub, .smyk-afw__sub,
.smyk-bn__subtitle, .smyk-diff__subtitle, .smyk-my__subtitle,
.esvs__sub, .smyk-qn__subtitle, .htc__subtitle, .smyk-kb__sub,
.smyk-rv-cta__sub,
.sfq-hiw__sub {
  text-align: center !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}
