/*
Theme Name: BinaryTech GRC
Author: Eko Triono, BinaryTech
*/

@media (max-width: 1280px) and (min-width: 1025px) {
  .e-con.e-con-boxed>.e-con-inner {
    max-width: calc( 100vw - 96px ) !important;
  }
}

body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.img-fluid img {
  width: 100% !important;
  height: auto;
}

.container-auto {
  width: auto !important;
}

.container-grow {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0; 
}

.elementor-widget-text-editor p {
  margin: 0;
}

/**
* Gallery project 
*/

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 32px 19px;
}

@media (max-width: 767px) {
  .project-gallery-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}
.project-gallery-grid .gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/**
  * Timeline History — Bar center on desktop, left on mobile, animated progress
*/
.timeline-history {
  position: relative;
  overflow: visible; /* allow overflow for progress bar */
}

.timeline-history::before,
.timeline-history::after {
  content: '';
  display: block;
  width: 10px;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 17px;             /* MOBILE: bar on left */
  margin-left: -5px;
  pointer-events: none;
}

.timeline-history::before {
  height: 100%;
  background: #fff;
  border: 1px solid #49100C;
  z-index: 1;
  transition: background 0.5s;
}

.timeline-history.timeline-animated::before {
  background: #49100C;
}

/* Progress bar: uses CSS variable for height; animated */
.timeline-history::after {
  height: var(--timeline-bar-progress, 0%);
  background: #49100C;
  z-index: 2;
  transition: height 1s cubic-bezier(0.4,0,0.2,1);
}

.timeline-history .timeline-item {
  z-index: 3;
}

/* DESKTOP: Bar moves to center */
@media (min-width: 1024px) {
  .timeline-history::before,
  .timeline-history::after {
    left: 50%;
    margin-left: -5px;
    width: 10px;
  }
  .timeline-history .elementor-loop-container > .e-loop-item {
    width: 50%;
    box-sizing: border-box;
  }

  /* Odd items on the right */
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(even) {
    margin-left: auto;
    margin-right: 22px;
  }

  /* Even items on the left */
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) {
    margin-left: 22px;
    margin-right: auto;
  }

  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-item {
    padding-left: 0;
    padding-right: 76px;
  }
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-item {
    padding-left: 0;
    padding-right: 76px;
  }
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-head {
    flex-direction: row-reverse;
  }
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-arrow {
    left: auto;
    right: 52px;
    transform: rotateY(3.142rad);
  }
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: 0;
  }
  .timeline-history .elementor-loop-container > .e-loop-item:nth-child(odd) .timeline-border {
    left: 0;
    right: auto;
  }
}


/* 
 * Contact Form 
*/
.cf7-row {
  margin-bottom: 28px;
}

.cf7-row-flex {
  display: flex;
  gap: 28px;
}

@media (max-width: 767px) {
  .cf7-row-flex {
    flex-direction: column;
    gap: 28px;
  }
}
.cf7-col {
  flex: 1;
}
.cf7-col p {
  padding: 0;
  margin: 0;
}

.wpcf7-form label {
  display: block;
  color: #161616;
  font-family: "Noto Sans";
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.09px;
  padding: 5px 7px;
}
.wpcf7-form label span {
  color: #E4323E;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font-size: 15px;
  margin-bottom: 0;
  box-sizing: border-box;
  background: #fff;
}

.wpcf7-form textarea {
  min-height: 65px;
  resize: vertical;
}

.cf7-row-submit {
  text-align: right;
}
.wpcf7-form input[type="submit"] {
  background: #54231a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 22px !important;
  cursor: pointer;
  float: right;
  font-family: Arial;
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
  text-transform: uppercase;
  width: 260px;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: 2px solid #54231a;
  border-color: #54231a;
}


@media (max-width: 767px) {
  .cf7-row-submit {
    text-align: center;
  }
  .wpcf7-form input[type="submit"] {
    float: none;
  }
  .wpcf7-spinner {
    display: block;
    margin: 0 auto;
  }
}