/*
    Theme Name: Gym Fitness
    Theme URI: 
    Author: Gopal Satam
    Author URI: https://gopalsatamdesign.com
    Description: Theme designed for gym
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: CSS Grid, Flexbox Ready, Mobile First, GYM Fitness Theme
    Text Domain: gymfitness
*/

:root {
  /** Fonts **/
  --mainFont: "Staatliches", cursive;
  --textFont: "Open Sans", sans-serif;
  --secondaryFont: "Raleway", sans-serif;

  /** Colors **/
  --primary: #ff5b00;
  --darkGray: #2f2e2e;
  --lightGray: #ebebeb;

  --white: #ffffff;
  --black: #000000;
}

html {
  box-sizing: border-box;
  font-size: 62.5%; /* Now 10px = 1rem! */
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: var(--secondaryFont);
  font-size: 1.6rem;
  line-height: 2;
}

/** Headings **/
h1,
h2,
h3 {
  font-family: var(--mainFont);
  margin: 0.5rem 0;
  line-height: 1.2;
}
h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.8rem;
  color: var(--primary);
}

h3 {
  font-size: 3.6rem;
}

/** Globals **/
a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 120rem; /** 1200px **/
  width: 95%;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

/** Utilities **/
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.section {
  padding: 5rem 0;
}

/** Buttons **/

.button-container {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: block;
  background-color: var(--primary);
  flex: 1;
  text-align: center;
  color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem 3rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2rem;
}

@media (min-width: 768px) {
  .button {
    display: inline-block;
    flex: 0 0 auto;
  }
}

/** Header **/

.logo {
  display: flex;
  justify-content: center;
}

.site-header {
  background-color: var(--darkGray);
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .navigation-bar {
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
  }

  .fixed-top {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--darkGray);
    z-index: 1000;
    padding: 1rem 5rem;
  }

  .fixed-top img {
    width: 12rem;
  }
}

.classes-homepage {
  background-color: var(--lightGray);
}

/** Front Header **/

body.home .site-header {
  height: 100vh;
  min-height: 65rem;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  body.home .header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    height: 100%;
  }

  body.home .navigation-bar {
    grid-column: 1 / 5;
  }
}

.tagline {
  color: var(--white);
  margin-top: 10rem;
}

.tagline p {
  font-size: 2.2rem;
}

@media (min-width: 768px) {
  .tagline {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    margin-top: 0;
  }
}

/** Menu **/
.main-menu {
  display: none;
}

@media (min-width: 768px) {
  .main-menu {
    display: flex;
  }

  .main-menu .menu {
    display: flex;
    align-items: center;
  }

  .main-menu li {
    margin-right: 2rem;
  }

  .main-menu li:last-of-type {
    margin-right: 0;
  }
}

.main-menu a {
  color: var(--white);
  font-size: 2.8rem;
  font-family: var(--mainFont);
  padding: 0.5rem 2rem;
}

@media (min-width: 768px) {
  .main-menu a {
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }
}

.main-menu .current_page_item {
  border-bottom: 3px solid var(--primary);
}

/** Mobile Menu**/

@media (min-width: 768px) {
  .slicknav_menu {
    display: none;
  }
}

.slicknav_menu {
  background-color: var(--darkGray);
}

.slicknav_btn {
  background-color: var(--primary);
}

.slicknav_nav a {
  font-size: 2.4rem;
  text-align: center;
  font-family: var(--mainFont);
}

.slicknav_nav a:hover {
  background-color: transparent;
  color: var(--primary);
}

/** Footer **/

.site-footer {
  border-top: 2px solid var(--lightGray);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-menu .menu {
  display: none;
}

@media (min-width: 768px) {
  .footer-menu .menu {
    display: flex;
  }

  .footer-menu .menu li {
    margin-right: 2rem;
  }

  .footer-menu .menu li:last-of-type {
    margin-right: 0;
  }

  .footer-menu a {
    font-family: var(--mainFont);
    font-size: 2rem;
    color: var(--black);
  }
}

.copyright {
  text-align: center;
  flex: 1;
  font-family: var(--mainFont);
  font-size: 2rem;
  margin: 0;
}

@media (min-width: 768px) {
  .copyright {
    flex: 0 0 auto;
  }
}

/** Page Template **/

.featured-image {
  margin-bottom: 3rem;
}

.page h1 {
  margin-bottom: 4rem;
}

.page.no-sidebars {
  max-width: 80rem;
  margin: 0 auto;
}

/** Page with Sidebar **/

@media (min-width: 768px) {
  .page.with-sidebar {
    display: flex;
    justify-content: space-between;
  }

  .with-sidebar .page-content {
    flex: 0 0 calc(60% - 2rem);
  }

  .with-sidebar .sidebar {
    flex: 0 0 calc(40% - 2rem);
  }
}

/** Classes List **/

.classes-list,
.blog-entries {
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .classes-list,
  .blog-entries {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.card {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .card {
    flex: 0 0 calc(50% - 2rem);
    position: relative;
  }

  .gradient::after {
    content: " ";
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    width: 100%;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.4+80 */
    background: -moz-linear-gradient(
      top,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0.4) 100%
    ); /* FF3.6-15 */
    background: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0.4) 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0.4) 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#66000000',GradientType=0 ); /* IE6-9 */
  }
}

.card img {
  display: block;
}

.card .card-content {
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 2rem;
    text-align: left;
  }
}

.card .card-content a {
  color: var(--black);
}

@media (min-width: 768px) {
  .card .card-content a {
    color: var(--white);
  }
}

.card .card-content p {
  color: var(--primary);
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
}

.card .card-content .date-published {
  color: var(--black);
}

@media (min-width: 768px) {
  .card .card-content .date-published {
    color: var(--white);
  }
}

/** Categories **/

.post-categories {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .post-categories {
    position: absolute;
    top: 2rem;
    left: 2rem;
    margin-top: 0;
    z-index: 2;
  }
}

.post-categories li {
  margin-right: 2rem;
}

.post-categories li:last-of-type {
  margin-right: 0;
}

.post-categories li a {
  border-radius: 0.5rem;
  background-color: var(--primary);
  padding: 0.5rem 2rem;
  color: var(--darkGray);
  font-size: 2.2rem;
  font-family: var(--mainFont);
  color: var(--white);
}

/** Single Class **/
p.content-class {
  font-weight: 700;
  font-family: var(--secondaryFont);
  font-size: 2.2rem;
  text-align: center;
}

/** Sidebar **/

.sidebar a {
  color: var(--black);
}

.sidebar .widget {
  margin-bottom: 2rem;
}

.sidebar-class {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.sidebar .sidebar-widget-image {
  flex: 0 0 30%;
}

.sidebar .class-content {
  flex: 0 0 calc(70% - 2rem);
}

.sidebar .class-content p {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.sidebar .classes-header {
  margin-bottom: 2rem;
}

/** Gallery **/
.gallery-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-temlate-rows: repeat(6, auto);
  grid-gap: 2rem;
}

@media (min-width: 768px) {
  .gallery-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-images img {
  display: block;
}

.gallery-images li:nth-child(4) {
  grid-row: 2 / 4;
  grid-column: 2 / 3;
}

@media (min-width: 768px) {
  .gallery-images li:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }
}

.gallery-images li:nth-child(7) {
  grid-row: 4 / 6;
  grid-column: 1 / 2;
}

@media (min-width: 768px) {
  .gallery-images li:nth-child(7) {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
  }
}

/** Contact Form **/

.wpcf7-form p {
  display: flex;
  flex-wrap: wrap;
}

.wpcf7-form label,
.wpcf7-form span {
  flex: 0 0 100%;
}

.wpcf7-form span {
  display: flex;
  flex-wrap: wrap;
}

.wpcf7-form-control {
  flex: 0 0 100%;
  border: 1px solid var(--lightGray);
  padding: 1rem;
}

.wpcf7-submit {
  background-color: var(--primary);
  font-size: 2rem;
  font-family: var(--mainFont);
  color: var(--white);
  padding: 1.2rem;
}

.wpcf7-submit:hover {
  cursor: pointer;
}

.wpcf7-response-output {
  background-color: red;
  color: var(--white);
  text-align: center;
}

.wpcf7 form .wpcf7-response-output {
  border: none;
}

div.wpcf7 .ajax-loader {
  background-repeat: no-repeat;
  background-position: center center;
  height: 0.1rem;
  width: 0.1rem;
}

.wpcf7-not-valid-tip {
  background-color: red;
  color: var(--white);
  padding: 1rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: green;
  color: var(--white);
  padding: 1rem;
  text-align: center;
}

/** Map **/

#map {
  height: 300px;
}

/** Homepage **/

/** Areas **/

.areas-container {
  display: flex;
  flex-wrap: wrap;
}

.areas-container .area {
  flex: 0 0 50%;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .areas-container .area {
    flex: 0 0 25%;
  }
}

.areas-container .area::after {
  content: "";
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75));
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

.areas-container .area p {
  position: absolute;
  margin: auto;
  color: var(--white);
  z-index: 3;
  font-size: 2rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .areas-container .area p {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .areas-container .area:hover p {
    opacity: 1;
  }
}

.area img {
  height: 350px;
  object-fit: cover;
}

/** Instructor **/

.instructor-list li {
  margin: 2rem 0;
  border-bottom: 1px solid var(--lightGray);
}

@media (min-width: 768px) {
  .instructor-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .instructor {
    flex: 0 0 calc(50% - 2rem);
    position: relative;
    margin-bottom: 4rem;
  }
}

.instructor .content {
  padding: 3rem;
}

@media (min-width: 768px) {
  .instructor .content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }

  .instructor .content h3 {
    color: var(--primary);
  }

  .instructor:hover .content {
    opacity: 1;
    transition-delay: 0.2s;
  }
}

.instructor img {
  display: block;
  height: 350px;
  object-fit: cover;
}

.instructor .tag {
  background-color: var(--primary);
  padding: 0.5rem 2rem;
  border-radius: 0.5rem;
  color: var(--white);
  font-family: var(--mainFont);
  font-size: 2.2rem;
  margin-right: 0.5rem;
}

.instructor .tag:last-of-type {
  margin-right: 0;
}

/** Testimonials **/

.testimonials {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("img/testimonial-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  padding: 12rem 0;
}

.testimonial {
  color: var(--white);
}

.testimonial blockquote {
  position: relative;
  padding-left: 12rem;
}

.testimonial blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 10rem;
  height: 9rem;
  background-image: url("img/quote.svg");
  background-repeat: no-repeat;
}

.testimonial-footer {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .testimonial-footer {
    justify-content: flex-end;
  }
}

.testimonial-footer img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  margin-right: 2rem;
}

.testimonial-footer p {
  font-weight: 700;
  color: var(--primary);
}

.testimonials h2 {
  color: var(--white);
}

.container-testimonials {
  max-width: 80rem;
  margin: 0 auto;
}

/** Override bxSlider **/

.bx-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
}

.bx-wrapper .bx-pager.bx-default-pager a,
.bx-wrapper .bx-pager.bx-default-pager a:hover {
  background-color: var(--white);
}

.bx-wrapper .bx-pager.bx-default-pager a.active {
  background-color: var(--primary);
}
