/* Layout presets of the website theme. Loaded only when a theme (or imported template)
   is active; each rule hangs off a class on <body> (th-nav-centered, th-card-overlay …)
   that SiteTheme::bodyClass() sets, so the default design is never touched.
   Colours come from the --th-* variables SiteTheme::head() prints. */

/* ===== Navbar ===== */
body.th-nav-centered .site-header{height:auto;flex-wrap:wrap;justify-content:center;gap:6px 24px;padding-top:14px;padding-bottom:10px}
body.th-nav-centered .brand{flex:0 0 100%;justify-content:center;font-size:1.35rem}
body.th-nav-centered .pub-links{order:3;flex:1 1 100%;justify-content:center;overflow:visible}
body.th-nav-centered .pub-actions{position:absolute;right:max(16px,5%);top:14px}
body.th-nav-dark .site-header{background:#111827 !important;border-bottom:0}
body.th-nav-dark .brand,body.th-nav-dark .main-nav a,body.th-nav-dark .btn-outline{color:#fff}
body.th-nav-dark .btn-outline{border-color:rgba(255,255,255,.4)}
body.th-nav-boxed .site-header{margin:12px max(12px,3%) 0;border:1px solid rgba(0,0,0,.06);border-radius:calc(var(--th-radius,14px) + 14px);box-shadow:0 10px 30px rgba(15,23,42,.1);top:10px}
body.th-nav-minimal .site-header{background:transparent !important;border-bottom:0;backdrop-filter:none;box-shadow:none}
body.th-nav-minimal .main-nav a{text-transform:none;letter-spacing:0;font-size:.9rem;border-radius:0;padding:.3rem .6rem}
body.th-nav-minimal .btn-outline{border:0;text-decoration:underline}
@media(max-width:720px){body.th-nav-centered .pub-actions{position:static}body.th-nav-centered .pub-links{display:none}body.th-nav-centered .site-header.is-open .pub-links{display:flex}}

/* ===== Footer ===== */
body.th-footer-light .site-footer{background:#f6f7f9 !important;color:#4b5563}
body.th-footer-light .site-footer h3,body.th-footer-light .footer-about .brand strong{color:#111827}
body.th-footer-light .social a{color:#111827;border-color:#d1d5db}
body.th-footer-light .site-footer ul a:hover{color:#111827}
body.th-footer-light .footer-bottom,body.th-footer-light .footer-grid > div + div{border-color:#e5e7eb}
body.th-footer-centered .site-footer{text-align:center}
body.th-footer-centered .footer-grid{grid-template-columns:1fr}
body.th-footer-centered .footer-grid > div + div{border:0;padding:0}
body.th-footer-centered .site-footer ul{align-items:center;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:6px 18px}
body.th-footer-centered .footer-contact li{justify-content:center}
body.th-footer-centered .social,body.th-footer-centered .inline-form{justify-content:center;margin-left:auto;margin-right:auto}
body.th-footer-centered .footer-bottom{justify-content:center;text-align:center}
body.th-footer-minimal .site-footer{padding-top:26px}
body.th-footer-minimal .footer-grid > div:not(.site-footer-brand){display:none}
body.th-footer-minimal .footer-grid{grid-template-columns:1fr}
body.th-footer-minimal .footer-bottom{margin-top:14px}

/* ===== Buttons ===== */
body.th-btn-pill .pb-btn,body.th-btn-pill .btn-primary,body.th-btn-pill .btn-outline,body.th-btn-pill .btn-primary,body.th-btn-pill .btn-secondary,body.th-btn-pill .auth-btn-primary,body.th-btn-pill .btn-green,body.th-btn-pill .btn-enroll{border-radius:999px}
body.th-btn-square .pb-btn,body.th-btn-square .btn-primary,body.th-btn-square .btn-outline,body.th-btn-square .btn-primary,body.th-btn-square .btn-secondary,body.th-btn-square .auth-btn-primary,body.th-btn-square .btn-green,body.th-btn-square .btn-enroll{border-radius:0;text-transform:uppercase;letter-spacing:.06em}
body.th-btn-outline .pb .pb-btn-main,body.th-btn-outline .btn-primary,body.th-btn-outline .auth-btn-primary,body.th-btn-outline .btn-primary{background:transparent !important;color:var(--th-accent,#006b3f) !important;border:2px solid var(--th-accent,#006b3f)}
body.th-btn-outline .pb-dark .pb-btn-main,body.th-btn-outline .pb-cta .pb-btn-main{color:#fff !important;border-color:#fff}
body.th-btn-outline .pb .pb-btn-main:hover,body.th-btn-outline .btn-primary:hover{background:var(--th-accent,#006b3f) !important;color:#fff !important;filter:none}
body.th-btn-soft .pb .pb-btn-main,body.th-btn-soft .btn-primary,body.th-btn-soft .auth-btn-primary{background:color-mix(in srgb,var(--th-accent,#006b3f) 14%,#fff) !important;color:var(--th-accent,#006b3f) !important}

/* ===== Headings & spacing ===== */
body.th-head-upper .pb-title,body.th-head-upper .pbx-title,body.th-head-upper .pb h1,body.th-head-upper .pb h2,body.th-head-upper .auth-head h1{text-transform:uppercase;letter-spacing:.04em}
body.th-head-light .pb-title,body.th-head-light .pbx-title,body.th-head-light .pb h1,body.th-head-light .pb h2,body.th-head-light .auth-head h1{font-weight:300 !important;letter-spacing:-.01em}
body.th-sec-compact .pb-pad-md{padding:28px 0}body.th-sec-compact .pb-pad-lg{padding:44px 0}body.th-sec-compact .pb-pad-xl{padding:64px 0}
body.th-sec-airy .pb-pad-md{padding:80px 0}body.th-sec-airy .pb-pad-lg{padding:120px 0}body.th-sec-airy .pb-pad-xl{padding:160px 0}

/* ===== Course cards (homepage strip, catalog, portal) ===== */
body.th-card-bordered .pb-course,body.th-card-bordered .c-card,body.th-card-bordered .pb-card{box-shadow:none !important;border:2px solid var(--th-border,#d1d5db)}
body.th-card-flat .pb-course,body.th-card-flat .c-card,body.th-card-flat .pb-card{box-shadow:none !important;border:0 !important;background:color-mix(in srgb,var(--th-accent,#006b3f) 6%,#fff)}
body.th-card-flat .pb-course-cover,body.th-card-flat .c-card-img{border-radius:var(--th-radius,14px)}
body.th-card-horizontal .pb-courses{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
body.th-card-horizontal .pb-course{flex-direction:row !important;align-items:stretch}
body.th-card-horizontal .pb-course-cover,body.th-card-horizontal .pb-course-fallback{width:38%;height:auto !important;min-height:150px;aspect-ratio:auto !important;flex-shrink:0}
body.th-card-horizontal .courses-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
body.th-card-horizontal .c-card{display:flex;flex-wrap:wrap}
body.th-card-horizontal .c-card-img{width:38%;min-height:170px;height:auto}
body.th-card-horizontal .c-card-body{flex:1;min-width:0}
body.th-card-horizontal .c-card-footer{flex:1 1 100%}
body.th-card-overlay .pb-course{position:relative;min-height:280px;color:#fff;border:0 !important;overflow:hidden;justify-content:flex-end}
body.th-card-overlay .pb-course-cover,body.th-card-overlay .pb-course-fallback{position:absolute;inset:0;width:100%;height:100% !important;object-fit:cover;aspect-ratio:auto !important}
body.th-card-overlay .pb-course::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 25%,rgba(0,0,0,.82));pointer-events:none}
body.th-card-overlay .pb-course-body{position:relative;z-index:2;background:none !important;color:#fff}
body.th-card-overlay .pb-course-title,body.th-card-overlay .pb-course-org,body.th-card-overlay .pb-course-cat,body.th-card-overlay .pb-course-foot{color:#fff !important}
body.th-card-overlay .pb-course-new{z-index:3}
body.th-card-overlay .c-card{position:relative;min-height:340px;overflow:hidden;color:#fff;display:flex;flex-direction:column;justify-content:flex-end}
body.th-card-overlay .c-card-img{position:absolute;inset:0;height:100%}
body.th-card-overlay .c-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.85));pointer-events:none}
body.th-card-overlay .c-card-body,body.th-card-overlay .c-card-footer{position:relative;z-index:2;background:none !important;border:0 !important;color:#fff}
body.th-card-overlay .c-card-title,body.th-card-overlay .c-card-desc,body.th-card-overlay .c-card-cat,body.th-card-overlay .c-card-price,body.th-card-overlay .c-card-tutor,body.th-card-overlay .c-card-meta{color:#fff !important}
@media(max-width:720px){body.th-card-horizontal .pb-courses,body.th-card-horizontal .courses-grid{grid-template-columns:1fr !important}}

/* ===== Sign-in / sign-up pages ===== */
body.th-auth-minimal .auth-card,body.th-auth-minimal .pb-signup,body.th-auth-minimal .pb-contact-form{box-shadow:none !important;border:0 !important;background:transparent !important}
body.th-auth-minimal .pb-role{box-shadow:none !important;border-width:0 0 1px 0 !important;border-radius:0 !important;background:transparent !important}
body.th-auth-minimal .auth-field input,body.th-auth-minimal .pb-field input,body.th-auth-minimal .pb-field select{border:0;border-bottom:2px solid var(--th-border,#d1d5db);border-radius:0;background:transparent}
body.th-auth-banded .auth-shell{background:linear-gradient(180deg,color-mix(in srgb,var(--th-accent,#006b3f) 10%,#fff) 0,color-mix(in srgb,var(--th-accent,#006b3f) 10%,#fff) 55%,transparent 55%);padding:48px 16px;border-radius:0}
body.th-auth-banded .auth-card,body.th-auth-banded .pb-signup{box-shadow:0 24px 60px rgba(15,23,42,.16) !important;border:0 !important}
body.th-auth-split .auth-shell{min-height:78vh;justify-content:flex-end;padding:0 6%;border-radius:calc(var(--th-radius,14px) + 6px);background:linear-gradient(120deg,var(--th-hero-a,var(--th-accent,#006b3f)) 0,var(--th-hero-b,var(--th-accent,#006b3f)) 52%,transparent 52%)}
body.th-auth-split .auth-card{box-shadow:0 20px 60px rgba(15,23,42,.18)}
body.th-auth-split .pb-signup{max-width:520px;margin:0 0 0 auto;padding:34px;box-shadow:0 20px 60px rgba(15,23,42,.14)}
body.th-auth-split .pb-sec.pb-t-signup_form{background:linear-gradient(120deg,var(--th-hero-a,var(--th-accent,#006b3f)) 0,var(--th-hero-b,var(--th-accent,#006b3f)) 48%,transparent 48%)}
body.th-auth-split .pb-sec.pb-t-signup_form .pb-wrap{max-width:1100px}
@media(max-width:820px){body.th-auth-split .auth-shell{justify-content:center;background:var(--th-hero-a,var(--th-accent,#006b3f));padding:24px 12px}body.th-auth-split .pb-sec.pb-t-signup_form{background:none}body.th-auth-split .pb-signup{margin:0 auto}}
body.th-card-overlay .c-card-body{flex:0 0 auto !important;margin-top:auto;padding-top:64px}
body.th-card-overlay .c-card-img{z-index:0}
body.th-card-overlay .c-card-badge,body.th-card-overlay .c-card-org-badge{z-index:3}
body.th-card-overlay .c-card-img-placeholder{opacity:.12}
