/*!
 * Lightweight CSS Foundation for Consulti Astro
 * Replaces 295 KB legacy plugins.css (Font Awesome 5 + Bootstrap 4 + Bootstrap-Select + Slick)
 * with only the exact icons, grid columns, tabs, and form controls used by Consulti.
 */

@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/fa-brands-400.woff2") format("woff2"),
       url("../font/fa-brands-400.woff") format("woff"),
       url("../font/fa-brands-400.ttf") format("truetype");
}
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/fa-regular-400.woff2") format("woff2"),
       url("../font/fa-regular-400.woff") format("woff"),
       url("../font/fa-regular-400.ttf") format("truetype");
}
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../font/fa-solid-900.woff2") format("woff2"),
       url("../font/fa-solid-900.woff") format("woff"),
       url("../font/fa-solid-900.ttf") format("truetype");
}

.fa, .fas, .far, .fab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}
.fab { font-family: 'Font Awesome 5 Brands'; font-weight: 400; }
.far { font-family: 'Font Awesome 5 Free'; font-weight: 400; }
.fa, .fas { font-family: 'Font Awesome 5 Free'; font-weight: 900; }

.fa-linkedin-in::before { content: "\f0e1"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-phone::before { content: "\f095"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-arrow-alt-circle-left::before { content: "\f359"; }
.fa-arrow-alt-circle-right::before { content: "\f35a"; }

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
figure {
  margin: 0 0 1rem;
}
img {
  vertical-align: middle;
  border-style: none;
}
button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, select {
  text-transform: none;
}
[type="button"], [type="reset"], [type="submit"], button {
  -webkit-appearance: button;
}

/* Bootstrap 4 Grid System (Only used classes) */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-sm-2, .col-sm-3, .col-sm-4, .col-sm-6,
.col-md-4, .col-md-6, .col-md-8, .col-md-12,
.col-lg-3, .col-lg-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) {
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Utilities */
.text-center { text-align: center !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Nav Tabs & Collapse Cards */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}
.nav-tabs .nav-item {
  margin-bottom: -1px;
}
.nav-tabs .nav-link {
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  display: block;
  padding: 0.5rem 1rem;
}
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}
.fade {
  transition: opacity 0.15s linear;
}
.fade:not(.show) {
  opacity: 0;
}
.collapse:not(.show) {
  display: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}
.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}
.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Form Controls & Native Styled Select (replaces bootstrap-select) */
.form-group {
  margin-bottom: 1rem;
}
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
textarea.form-control {
  height: auto;
}
select.selectpicker,
select.wpcf7-form-control {
  display: block;
  width: 100%;
  height: 45px;
  padding: 8px 36px 8px 15px;
  font-size: 14px;
  color: #6c6c6c;
  background-color: #ffffff;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

/* Slick / Vanilla Slider Structural Rules */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
}
.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.6s ease;
}
.slick-slide {
  display: block;
  height: 100%;
  min-height: 1px;
  flex-shrink: 0;
}
.slick-slide img {
  display: block;
}
.slick-dots {
  position: absolute;
  bottom: 25px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.slick-dots li {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

/* Clean Markdown Typography inside Post Body */
.post-markdown-body h2,
.post-markdown-body h3,
.post-markdown-body h4 {
  margin-top: 28px;
  margin-bottom: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.post-markdown-body p {
  margin-bottom: 20px;
  line-height: 1.75;
}
.post-markdown-body ul,
.post-markdown-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.post-markdown-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-markdown-body hr {
  margin: 32px 0;
}
.post-markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.post-markdown-body table td,
.post-markdown-body table th {
  border: 1px solid #dcdcdc;
  padding: 10px 14px;
}
