/**
 * Typography Styles for Lifetime11 Theme
 * Based on original Lifetime theme, adapted for Bootstrap 5
 */

body {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  line-height: 1.5em;
  color: #69797f;
  background-color: #22aae0;
}

/* Links */
a {
  color: #82b62a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #999;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 34px;
  color: #22aae0;
  margin: 40px 0 0 0;
  padding: 0;
  line-height: 34px;
}

h2 {
  font-size: 20px;
  color: #86b830;
  padding: 12px 0 0 0;
  margin: 0;
  line-height: 21px;
}

h3 {
  font-size: 18px;
  color: #22aae0;
  margin: 0;
  padding: 0 0 5px 0;
  line-height: 19px;
}

h4 {
  font-size: 18px;
  margin: 0;
  padding: 0 0 5px 0;
  line-height: 19px;
}

/* Utility Classes */
.img-right {
  float: right;
  padding: 0 0 20px 20px;
  max-width: 40%;
}

.img-left {
  float: left;
  padding: 0 20px 20px 0;
  max-width: 40%;
}

/* Blue Box Styling */
.blue {
  background-color: #22aae0;
  padding: 20px;
  color: #fff;
  margin-bottom: 25px;
}

.blue p {
  margin: 0;
}

.blue h4 {
  color: #fed53d;
}

.blue th {
  text-align: left;
  font-size: 18px;
  margin: 0;
  padding: 0 0 5px 0;
  color: #fed53d;
  font-weight: 400;
  padding: 0 3px;
}

.blue td {
  padding: 0 3px;
}

/* Gray Box Styling */
.gray {
  background-color: #e6edf0;
  padding: 20px;
  font-size: 14px;
  color: #69797f;
  line-height: 22px;
  margin-bottom: 25px;
}

.gray p {
  margin: 0;
}

/* Messages */
.message.status {
  border: none;
  background-color: #9dd43e;
  background-image: none;
  color: #c6cdce;
}

.message.status p {
  color: #fff;
  padding: 5px;
}

.message.error {
  border: none;
  background-color: #9dd43e;
  background-image: none;
}

.message.error p {
  color: #fff;
  padding: 5px;
}

/* File Links */
.file img.file-icon {
  display: none;
}

.file {
  padding: 5px 0;
  display: block;
}

.file a {
  background: url(../images/file-icon.png) 0 0 no-repeat;
  background-size: 33px 42px;
  padding: 15px 15px 15px 45px;
  display: inline-block;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Green Button */
a.grn-btn {
  display: inline-block;
  background-color: #b2cc27;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 27px 60px;
  line-height: 1.5rem;
  transition: background-color 0.3s ease;
}

a.grn-btn:hover {
  background-color: #9ab525;
  color: #fff;
}

/* ======================================
   Mobile Responsive Typography
   ====================================== */

@media (max-width: 768px) {
  /* Adjust font sizes for mobile */
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  h4 {
    font-size: 16px;
    line-height: 1.3;
  }

  /* Image utility classes - Stack on mobile */
  .img-right,
  .img-left {
    float: none;
    padding: 0 0 20px 0;
    max-width: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
  }

  /* Green button - Adjust size */
  a.grn-btn {
    font-size: 20px;
    padding: 20px 40px;
  }

  /* Blue box - Adjust padding */
  .blue {
    padding: 15px;
    margin-bottom: 20px;
  }

  .blue th {
    font-size: 16px;
  }

  /* Responsive video - Ensure it scales */
  .video-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 16px;
  }

  a.grn-btn {
    font-size: 18px;
    padding: 15px 30px;
  }
}
