/*
Theme Name: Astra Child
Theme URI: https://www.darrenfullerton.com
Author: Darren Fullerton Consultancy Ltd
Author URI: https://www.darrenfullerton.com
Description: Child theme for Astra.
Version: 1.0.0
Template: astra
Text Domain: astra-child
*/

 


/* TEC pages: force Astra header bar to your "blue header" look */
.single-tribe_events .ast-primary-header-bar,
.post-type-archive-tribe_events .ast-primary-header-bar,
.tribe-events-page-template .ast-primary-header-bar {
  background: #0b1b3a; /* <- change to your exact blue */
}

/* Make sure menu/link colours stay readable */
.single-tribe_events .ast-primary-header-bar a,
.post-type-archive-tribe_events .ast-primary-header-bar a,
.tribe-events-page-template .ast-primary-header-bar a {
  color: #ffffff;
}

/* If your header has icons/buttons */
.single-tribe_events .ast-primary-header-bar .ast-header-html,
.post-type-archive-tribe_events .ast-primary-header-bar .ast-header-html {
  color: #ffffff;
}

.tribe-events-single .tribe-events-event-image img{
  height: 420px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display:block;
}

/* Centre and constrain event content */
.single-tribe_events .tribe-events-l-container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Event featured image – modern hero card */
.single-tribe_events .tribe-events-event-image {
  margin-bottom: 32px;
}

.single-tribe_events .tribe-events-event-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Event title */
.single-tribe_events .tribe-events-single-event-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* Date / time / cost line under title */
.single-tribe_events .tribe-events-schedule {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 24px;
}

/* Meta / details area */
.single-tribe_events .tribe-events-meta-group {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Headings inside details */
.single-tribe_events .tribe-events-meta-group h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

/* Add to calendar button */
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}

/* Push single event content below the fixed/transparent header (Astra + TEC) */
body.single-tribe_events .site-content,
body.post-type-archive-tribe_events .site-content {
  padding-top: 150px !important;
}

/* Hide "All Events" link on single event pages */
.single-tribe_events .tribe-events-back {
  display: none !important;
}

.pricing-billing-box{
  max-width: 700px;
  margin: 0 auto 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(8, 32, 78, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(8, 32, 78, 0.06);
  padding: 18px 24px;
}

.pricing-billing-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:12px;
}

.pricing-billing-eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#11b5d8;
  margin-bottom:4px;
}

.pricing-billing-copy h3{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.1;
  color:#081f4e;
}

.pricing-billing-copy p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#5f6b7a;
  max-width:560px;
}

.pricing-toggle-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:4px;
}

.billing-label{
  font-size:14px;
  font-weight:700;
  color:#081f4e;
  opacity:.55;
  transition:.25s ease;
}

.billing-label.active{
  opacity:1;
}

.save-badge{
  display:inline-block;
  margin-left:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#61CE70;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  vertical-align:middle;
}

.switch{
  position:relative;
  display:inline-block;
  width:56px;
  height:30px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  cursor:pointer;
  inset:0;
  background:#d7dde5;
  border-radius:999px;
  transition:.3s ease;
}

.slider:before{
  content:"";
  position:absolute;
  height:24px;
  width:24px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:.3s ease;
}

.switch input:checked + .slider{
  background:#11b5d8;
}

.switch input:checked + .slider:before{
  transform:translateX(26px);
}

@media (max-width: 767px){
  .pricing-billing-box{
    padding:16px 16px;
    margin: 0 auto 24px;
  }

  .pricing-billing-copy h3{
    font-size:21px;
  }

  .pricing-billing-copy p{
    font-size:13px;
  }

  .pricing-toggle-wrap{
    gap:10px;
  }

  .billing-label{
    font-size:13px;
  }
}

/* Force immediate render of hero + headings */
.elementor-heading-title {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Kill Elementor entrance effects globally */
.elementor-invisible {
  opacity: 1 !important;
}

#os-hero h1,
#os-hero h2 {
  position: relative;
  z-index: 2;
}

/* Make image the LCP element */
.os-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* SBC account page - constrain content width */
.page-id-212 .site-main > article,
.page-id-212 .entry-content,
.page-id-212 .entry-header {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Keep the intro copy and MemberPress area aligned */
.page-id-212 .mp_wrapper,
.page-id-212 .mepr-home-wrapper {
  max-width: 100%;
}

/* Mobile spacing */
@media (max-width: 767px) {
  .page-id-212 .site-main > article,
  .page-id-212 .entry-content,
  .page-id-212 .entry-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Main account content card */
.page-id-212 .entry-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Add spacing between title and content */
.page-id-212 .entry-header {
  margin-bottom: 12px;
}

/* Tidy the nav links (Overview / Bookings etc) */
.page-id-212 #mepr-account-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
}

.page-id-212 #mepr-account-nav li {
  list-style: none;
}

.page-id-212 #mepr-account-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8,31,78,0.06);
  font-weight: 600;
  text-decoration: none;
}

.page-id-212 #mepr-account-nav .mepr-active-nav-tab a {
  background: #11b5d8;
  color: #fff;
}

/* Mobile */
@media (max-width: 767px) {
  .page-id-212 .entry-content {
    padding: 20px;
    border-radius: 14px;
  }
}

/* Tidy top nav spacing */
.page-id-212 #mepr-account-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
}

.page-id-212 #mepr-account-nav li {
  list-style: none;
}

/* Make them feel like buttons */
.page-id-212 #mepr-account-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8,31,78,0.06);
  font-weight: 600;
  text-decoration: none;
}

.page-id-212 #mepr-account-nav .mepr-active-nav-tab a {
  background: #081f4e;
  color: #fff;
}
