/* Serendib International — explicit photographic heroes for public-facing pages.
 * Source photograph: Pexels, modern architecture with tropical palms.
 * The homepage and signed-in account pages are intentionally excluded.
 */
body.serendib-public-page {
    --sia-public-green: #174d3b;
    --sia-public-ink: #173d30;
    background: #fbfaf8 !important;
}

body.serendib-public-page .site-content,
body.serendib-public-page .content-area,
body.serendib-public-page .site-main,
body.serendib-public-page .entry-content,
body.serendib-public-page .page-content {
    overflow: visible !important;
}

/* This is a real, server-rendered hero element. It does not depend on theme
   title selectors, so the building image and centered title always appear. */
.serendib-public-page-hero {
    position: relative !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: none !important;
    min-height: 370px !important;
    left: 50% !important;
    margin: 0 0 38px -50vw !important;
    padding: 72px 24px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #174d3b !important;
    background-image:
        linear-gradient(112deg, rgba(5, 31, 24, .82) 0%, rgba(10, 52, 40, .66) 52%, rgba(9, 43, 34, .55) 100%),
        url('https://images.pexels.com/photos/29220860/pexels-photo-29220860.jpeg?auto=compress&cs=tinysrgb&w=2400') !important;
    background-position: center 48% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    text-align: center !important;
    color: #fff !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.12) !important;
}

.serendib-public-page-hero::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    inset: 0 !important;
    background: linear-gradient(0deg, rgba(3, 24, 19, .28), rgba(3, 24, 19, .02) 62%) !important;
    pointer-events: none !important;
}

.serendib-public-page-hero__inner {
    position: relative !important;
    z-index: 1 !important;
    width: min(1120px, 100%) !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.serendib-public-page-hero h1,
.serendib-public-page-hero .entry-title,
.serendib-public-page-hero .page-title,
.serendib-public-page-hero .wp-block-post-title {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(40px, 5.1vw, 68px) !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
    text-shadow: 0 3px 24px rgba(0,0,0,.28) !important;
}

.serendib-public-page-hero p {
    position: relative !important;
    z-index: 1 !important;
    max-width: 790px !important;
    margin: 17px auto 0 !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    text-align: center !important;
}

.serendib-public-page-hero__eyebrow,
.serendib-public-page-hero .yogalk-public-eyebrow,
.serendib-public-page-hero .yogalk-cep-eyebrow,
.serendib-public-page-hero .yogalk-eyebrow {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    margin: 0 auto 14px !important;
    color: #e8d49a !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .19em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

/* Yoga Teacher directory: preserve its search controls but center the title. */
.yogalk-directory {
    max-width: 1160px !important;
    margin: 0 auto 58px !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
}
.yogalk-directory-meta,
.yogalk-directory-grid,
.yogalk-pagination {
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.yogalk-directory-hero.serendib-public-page-hero {
    min-height: 390px !important;
    margin-bottom: 28px !important;
    padding: 66px 24px 56px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image:
        linear-gradient(112deg, rgba(5, 31, 24, .84), rgba(10, 52, 40, .64)),
        url('https://images.pexels.com/photos/29220860/pexels-photo-29220860.jpeg?auto=compress&cs=tinysrgb&w=2400') !important;
}
.yogalk-directory-hero.serendib-public-page-hero h1 {
    margin: 0 auto 12px !important;
}
.yogalk-directory-hero.serendib-public-page-hero p {
    margin: 0 auto 22px !important;
}
.yogalk-directory-search {
    width: min(1080px, 100%) !important;
    margin: 26px auto 0 !important;
}

/* School directory's old heading row now becomes a centered full-width hero. */
.yogalk-rys-directory {
    max-width: 1180px !important;
    margin: 0 auto 55px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.yalk-rys-head.serendib-public-page-hero {
    min-height: 350px !important;
    width: 100vw !important;
    margin: 0 0 30px -50vw !important;
    padding: 66px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    border-bottom: 0 !important;
}
.yalk-rys-head.serendib-public-page-hero > div:first-child {
    width: min(100%, 950px) !important;
    text-align: center !important;
}
.yalk-rys-head.serendib-public-page-hero h1 {
    max-width: 100% !important;
    margin: 0 auto 12px !important;
    color: #fff !important;
}
.yalk-rys-head.serendib-public-page-hero p {
    margin: 0 auto !important;
}
.yalk-rys-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    backdrop-filter: blur(8px) !important;
}

/* Provider directory content remains in a normal white content column. */
.yogalk-cep-dir {
    max-width: 1100px !important;
    margin: 0 auto 55px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.yogalk-cep-search {
    justify-content: center !important;
    margin: 28px auto 18px !important;
}
.yogalk-cep-search input {
    min-width: min(360px, 100%) !important;
}

/* Verification form/results card sits below its own photographic hero. */
.yogalk-unified-wrap {
    width: min(860px, calc(100% - 40px)) !important;
    max-width: 860px !important;
    margin: 0 auto 60px !important;
    padding: 30px !important;
    border: 1px solid #e1e7e4 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(20,50,40,.07) !important;
}

/* Legacy Join / Registry Hub templates use .yogalk-page-hero. */
.yogalk-page-hero.serendib-public-page-hero {
    min-height: 360px !important;
    padding: 70px 24px !important;
    background-image:
        linear-gradient(112deg, rgba(5, 31, 24, .82), rgba(10, 52, 40, .62)),
        url('https://images.pexels.com/photos/29220860/pexels-photo-29220860.jpeg?auto=compress&cs=tinysrgb&w=2400') !important;
}
.yogalk-page-hero.serendib-public-page-hero h1,
.yogalk-page-hero.serendib-public-page-hero p {
    color: #fff !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.yogalk-page-hero.serendib-public-page-hero .yogalk-eyebrow {
    color: #e8d49a !important;
    text-align: center !important;
}

/* The injected generic hero is used on Contact, About, legal and other static pages. */
.serendib-public-page-hero--generic {
    margin-bottom: 45px !important;
}

/* Remove the theme's old cream/left-aligned page title band when the new hero
   is present. The JS marks only the title wrapper outside the article content. */
.serendib-public-original-title {
    display: none !important;
}

@media (max-width: 760px) {
    .serendib-public-page-hero {
        min-height: 290px !important;
        margin-bottom: 28px !important;
        padding: 52px 18px !important;
        background-position: center center !important;
    }
    .serendib-public-page-hero h1,
    .serendib-public-page-hero .entry-title,
    .serendib-public-page-hero .page-title,
    .serendib-public-page-hero .wp-block-post-title {
        font-size: clamp(34px, 9vw, 48px) !important;
        line-height: 1.1 !important;
    }
    .serendib-public-page-hero p {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }
    .yogalk-directory-hero.serendib-public-page-hero {
        min-height: 330px !important;
        padding: 48px 18px !important;
    }
    .yogalk-directory-search {
        grid-template-columns: 1fr !important;
    }
    .yogalk-rys-directory,
    .yogalk-cep-dir {
        padding: 0 16px !important;
    }
    .yogalk-unified-wrap {
        width: calc(100% - 28px) !important;
        padding: 21px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .serendib-public-page-hero { scroll-behavior: auto; }
}


/* The shared page hero sits directly below the primary navigation. */
.serendib-pre-hero-chrome { display:none !important; }
body.serendib-public-page .entry-content, body.serendib-public-page .page-content { padding-top:0 !important; }

/* Remove breadcrumb strips from the space between navigation and the photographic hero. */
body.serendib-account-area .breadcrumb,
body.serendib-account-area .breadcrumbs,
body.serendib-account-area .breadcrumb-trail,
body.serendib-account-area .breadcrumb-wrap,
body.serendib-account-area .breadcrumbs-wrap,
body.serendib-account-area .yoast-breadcrumb,
body.serendib-account-area .rank-math-breadcrumb,
body.serendib-account-area .woocommerce-breadcrumb,
body.serendib-account-area .yk-breadcrumb,
body.serendib-account-area .yk-breadcrumbs,
body.serendib-account-area .yogalk-breadcrumb,
body.serendib-account-area .page-breadcrumb,
body.serendib-account-area nav[aria-label*="breadcrumb" i],
body.serendib-account-area [class*="breadcrumb"],
body.serendib-public-page .breadcrumb,
body.serendib-public-page .breadcrumbs,
body.serendib-public-page .breadcrumb-trail,
body.serendib-public-page .breadcrumb-wrap,
body.serendib-public-page .breadcrumbs-wrap,
body.serendib-public-page .yoast-breadcrumb,
body.serendib-public-page .rank-math-breadcrumb,
body.serendib-public-page .woocommerce-breadcrumb,
body.serendib-public-page .yk-breadcrumb,
body.serendib-public-page .yk-breadcrumbs,
body.serendib-public-page .yogalk-breadcrumb,
body.serendib-public-page .page-breadcrumb,
body.serendib-public-page nav[aria-label*="breadcrumb" i],
body.serendib-public-page [class*="breadcrumb"] { display:none !important; }
