/**
 * Layout Styles for Lifetime11 Theme
 * Container and structure layout using Bootstrap 5 grid
 */

/* Main Container Styles */
#header-wrap {
  background-color: #fff;
}

#header-wrap .mast {
  width: 100%;
  max-width: 100%;
  padding: 30px 50px 10px;
  box-sizing: border-box;
}

#field {
  background-color: #fff;
}

.not-front #white-wrap {
  background: url(../images/shadow-inside.png) top center repeat-x;
}

#white-wrap2 {
  background-color: #fff;
  position: relative;
}

#white {
  position: relative;
}

/* Content Wrapper */
.wrap-columns {
  padding: 0 20px;
  width: auto;
}

.front .region-content {
  padding-top: 0;
}

/* Front Page Header */
.front #header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

/* Sidebar Layout */
.region-sidebar-first {
  width: 31.875% !important;
  margin-left: 0 !important;
  float: left;
}

.sidebar-first .content-column {
  width: 63.021% !important;
  float: right;
}

.sidebar-first .main {
  width: 100% !important;
  margin-left: 0 !important;
}

/* Clearfix Utility */
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  display: inline-block;
}

/* Hides from IE-mac */
* html .clearfix {
  height: 1%;
}

.clearfix {
  display: block;
}
/* End hide from IE-mac */

/* Blue Section Layout */
#blue {
  padding: 100px 50px;
}

#blue h1 {
  font-size: 46px;
  color: #232424;
  line-height: 1;
  margin: 0;
  padding-bottom: 30px;
  display: none;
}

#blue .region-content h1 {
  display: block;
}

#blue h3 {
  font-size: 36px;
  color: #232424;
  margin: 0;
}

#blue h3:after {
  content: " ";
  max-width: 260px;
  height: 2px;
  background-color: #109bd2;
  display: block;
  margin: 56px 0;
}

#blue p {
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 25px 0;
}

#blue p:last-child {
  margin-bottom: 0;
}

.home-vid {
  float: right;
  width: 50%;
  margin: 0 0 20px 20px;
}

/* Page Bottom Footer */

#page-bottom {
  padding-top: 40px;
  font-size: 14px;
  color: #fff;
}

#page-bottom h2 {
  font-size: 27px;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  padding: 0 0 20px 0;
  line-height: 29px;
}

#page-bottom p a {
  color: #fff;
}

#block-lifetime11-footerinfo {
  width: 34.6%;
  float: left;
  margin-right: 2%;
  line-height: 30px;
}

#block-lifetime11-footerinfo address {
  font-style: normal;
}

#block-lifetime11-footermenu,
#block-lifetime11-footermenuloggedin {
  float: left;
  width: 44.3%;
}

#block-lifetime11-footermenu ul,
#block-lifetime11-footermenuloggedin > ul {
  padding: 0;
  margin: 0;
}

#block-lifetime11-footermenu ul li,
#block-lifetime11-footermenuloggedin > ul li {
  float: left;
  width: 33%;
  border-left: 1px solid #62c3e9;
  line-height: 30px;
}

#block-lifetime11-footermenu ul li a,
#block-lifetime11-footermenuloggedin > ul li a {
  color: #fff;
  padding: 0 0 0 17px;
}

#block-lifetime11-footermenu ul li a:hover,
#block-lifetime11-footermenuloggedin > ul li a:hover {
  color: #85d2f1;
}

#block-lifetime11-footermenu ul li,
#block-lifetime11-footermenuloggedin > ul li {
  list-style: none;
  list-style-image: none;
}

#block-lifetime11-followus {
  width: 17.1%;
  float: right;
}

#block-lifetime11-followus p a {
  margin-right: 20px;
}

.region-footer {
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
  width: 1000px;
  margin: auto;
}

/* Butterfly Decorations */
.butterfly1 {
  position: absolute;
  bottom: -34px;
  left: -69px;
}

.butterfly2 {
  position: absolute;
  bottom: -30px;
  right: -50px;
}

.butterfly1a {
  position: absolute;
  bottom: -34px;
  left: 0;
  display: none;
}

.butterfly2a {
  position: absolute;
  bottom: -30px;
  right: 0;
  display: none;
}

#header .logo-wrap {
  display: flex;
  justify-content: space-between;
}

/* ======================================
   Mobile Responsive Layout
   ====================================== */

@media (max-width: 992px) {
  /* Header adjustments */
  #header-wrap .mast {
    padding: 20px 20px 10px;
  }

  #header .logo-wrap {
    display: flex;
    justify-content: initial;
  }

  /* Remove padding from front page header on mobile - keep absolute positioning */
  .front #header {
    padding-bottom: 0;
  }

  /* Content layout - Remove sidebar float */
  .region-sidebar-first {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  .sidebar-first .content-column {
    width: 100% !important;
    float: none !important;
  }

  /* Blue section */
  #blue {
    padding: 50px 20px;
  }

  #blue h1 {
    font-size: 32px;
  }

  #blue h3 {
    font-size: 28px;
  }

  #blue h3:after {
    margin: 30px 0;
  }

  #blue p {
    font-size: 16px;
  }

  .home-vid {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  /* Footer - Stack vertically */
  .region-footer {
    display: block !important;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  #page-bottom {
    padding: 30px 20px;
  }

  #block-lifetime11-footerinfo {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 30px;
  }

  #block-lifetime11-footermenu,
  #block-lifetime11-footermenuloggedin {
    width: 100%;
    float: none;
    margin-bottom: 30px;
  }

  #block-lifetime11-footermenu ul li,
  #block-lifetime11-footermenuloggedin > ul li {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid #62c3e9;
    padding: 10px 0;
  }

  #block-lifetime11-footermenu ul li:last-child,
  #block-lifetime11-footermenuloggedin > ul li:last-child {
    border-bottom: none;
  }

  #block-lifetime11-footermenu ul li a,
  #block-lifetime11-footermenuloggedin > ul li a {
    padding: 0;
  }

  #block-lifetime11-followus {
    width: 100%;
    float: none;
  }

  #block-lifetime11-followus p {
    text-align: center;
  }

  #block-lifetime11-followus p a {
    margin: 0 10px;
  }

  /* Hide decorative butterflies on small screens */
  .butterfly1,
  .butterfly2 {
    display: none;
  }

  .butterfly1a,
  .butterfly2a {
    display: block;
  }
}

@media (max-width: 600px) {
  /* Further reduce padding on very small screens */
  .wrap-columns {
    padding: 15px 10px;
  }

  #blue {
    padding: 30px 15px;
  }

  #page-bottom {
    padding: 20px 15px;
  }

  #page-bottom h2 {
    font-size: 22px;
    padding: 0 0 15px 0;
  }
}

