/* Brand overrides: replace legacy #FF4800 palette with #e71d23 (Logistas red) */
:root { --primary: #e71d23; }
/* Buttons */
.btn-primary {color:#fff;background:#e71d23;border-color:#e71d23;}
.btn-primary:hover {background:#c11218;border-color:#b50f15;}
.btn-primary:focus,.btn-primary.focus {background:#c11218;border-color:#b50f15;box-shadow:0 0 0 .2rem rgba(231,29,35,.5);}
.btn-primary.disabled,.btn-primary:disabled {background:#e71d23;border-color:#e71d23;}
.btn-primary:active,.btn-primary.active,.show>.btn-primary.dropdown-toggle {background:#b50f15;border-color:#a90e13;}
.btn-primary:active:focus,.btn-primary.active:focus,.show>.btn-primary.dropdown-toggle:focus {box-shadow:0 0 0 .2rem rgba(231,29,35,.5);}
.btn-outline-primary {color:#e71d23;border-color:#e71d23;}
.btn-outline-primary:hover {background:#e71d23;border-color:#e71d23;color:#fff;}
.btn-outline-primary:focus,.btn-outline-primary.focus {box-shadow:0 0 0 .2rem rgba(231,29,35,.5);}
.btn-outline-primary:active,.btn-outline-primary.active,.show>.btn-outline-primary.dropdown-toggle {background:#e71d23;color:#fff;}
.btn-outline-primary:active:focus,.btn-outline-primary.active:focus,.show>.btn-outline-primary.dropdown-toggle:focus {box-shadow:0 0 0 .2rem rgba(231,29,35,.5);}
.btn-link {color:#e71d23;}
.btn-link:hover {color:#9d0c11;}
/* Badges */
.badge-primary {background:#e71d23;}
.badge-primary[href]:hover,.badge-primary[href]:focus {background:#b50f15;}
/* Alerts */
.alert-primary {color:#7b0b10;background:#fad1d5;border-color:#f6babe;}
.alert-primary .alert-link {color:#4e070a;}
/* Tables */
.table-primary,.table-primary>th,.table-primary>td {background:#fad1d5;}
.table-primary th,.table-primary td,.table-primary thead th,.table-primary tbody+tbody {border-color:#f3a3a6;}
.table-hover .table-primary:hover {background:#f6babe;}
/* Pagination */
.page-link {color:#e71d23;}
.page-link:hover {color:#a90e13;}
.page-link:focus {box-shadow:0 0 0 .2rem rgba(231,29,35,.25);}
.page-item.active .page-link {background:#e71d23;border-color:#e71d23;}
/* Progress */
.progress-bar {background:#e71d23;}
/* List group */
.list-group-item.active {background:#e71d23;border-color:#e71d23;}
/* Background / text / border helpers */
.bg-primary {background:#e71d23 !important;}
.border-primary {border-color:#e71d23 !important;}
.text-primary {color:#e71d23 !important;}
.text-primary:hover,.text-primary:focus {color:#9d0c11 !important;}
/* Form focus */
.form-control:focus,.custom-select:focus {border-color:#f08c90;box-shadow:0 0 0 .2rem rgba(231,29,35,.25);}
.custom-file-input:focus ~ .custom-file-label {border-color:#f08c90;box-shadow:0 0 0 .2rem rgba(231,29,35,.25);}
/* Custom controls */
.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {background:#e71d23;border-color:#e71d23;}
.custom-control-input:focus ~ .custom-control-label::before {box-shadow:0 0 0 .2rem rgba(231,29,35,.25);}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {border-color:#f08c90;}
.custom-control-input:not(:disabled):active ~ .custom-control-label::before {background:#f6babe;border-color:#f6babe;}
/* Range */
.custom-range::-webkit-slider-thumb,
.custom-range::-moz-range-thumb,
.custom-range::-ms-thumb {background:#e71d23;}
.custom-range:focus::-webkit-slider-thumb,
.custom-range:focus::-moz-range-thumb,
.custom-range:focus::-ms-thumb {box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(231,29,35,.25);}
.custom-range::-webkit-slider-thumb:active,
.custom-range::-moz-range-thumb:active,
.custom-range::-ms-thumb:active {background:#f6babe;}
/* Dropdown / nav pills */
.dropdown-item.active,.dropdown-item:active {background:#e71d23;}
.nav-pills .nav-link.active,.nav-pills .show>.nav-link {background:#e71d23;}
/* Generic button focus */
.btn:focus,.btn.focus {box-shadow:0 0 0 .2rem rgba(231,29,35,.25);}
/* Navbar primary hover */
.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .nav-link.active {background:#e71d23;color:#fff;}
/* Media / play button */
.btn-play:before,.btn-play:after {background:#e71d23;}
.btn-play:hover:after {background:#b50f15;}
/* Team & testimonial */
.team .team-text {border-bottom:5px solid #e71d23;}
.testimonial-carousel .owl-dot.active {background:#e71d23;}
/* End brand overrides */

/* ----------------------------------- */
/* Video & media wrapper enhancements  */
/* ----------------------------------- */
.media-wrapper {position:relative;display:block;width:100%;overflow:hidden;background:#000;}
.media-wrapper.ratio-16x9 {padding-top:56.25%;}
.media-wrapper.ratio-1x1 {padding-top:100%;}
.media-wrapper > .media-video, .media-wrapper > .media-poster {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;}
.media-video {background:#000;opacity:0;transition:opacity .6s ease;}
.media-video.is-ready {opacity:1;}
/* For circular avatar style wrappers */
.media-wrapper.circle {border-radius:50%;}
.media-wrapper.circle > .media-video, .media-wrapper.circle > .media-poster {border-radius:50%;}

/* Utility class for a simple fading background video (full container) */
.bg-video-container {position:relative;}
.bg-video-container > .bg-video {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.bg-video-container > *:not(.bg-video) {position:relative;z-index:1;}

/* Dark overlay utility for readability over video backgrounds */
.overlay-dark {position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:1;}

/* Image + video overlay approach (preserve original layout sizing) */
.media-overlay {position:relative;display:block;width:100%;}
.media-overlay img {display:block;width:100%;height:auto;}
.media-overlay .media-video {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;}
.media-overlay.circle img,.media-overlay.circle .media-video {border-radius:50%;}
.media-overlay .media-video {background:#000;opacity:0;transition:opacity .6s ease;}
.media-overlay .media-video.is-ready {opacity:1;}
.card-img-wrapper {position:relative;}
.card-img-wrapper img {display:block;width:100%;height:auto;}
.card-img-wrapper .media-video {position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;background:#000;opacity:0;transition:opacity .6s ease;border-radius:inherit;}
.card-img-wrapper.circle {border-radius:50%;overflow:hidden;}
.card-img-wrapper.circle img {border-radius:50%;}
.card-img-wrapper .media-video.is-ready {opacity:1;}

/* Requested change: hide poster <img> and make videos fill wrapper */
.media-overlay img {display:none !important;}
.media-overlay .media-video {position:relative;top:auto;left:auto;width:100%;height:100%;object-fit:cover;opacity:1;transition:none;}
.card-img-wrapper img {display:none !important;}
.card-img-wrapper .media-video {position:relative;top:auto;left:auto;width:100%;height:100%;object-fit:cover;opacity:1;transition:none;}
.card-img-wrapper.circle .media-video {border-radius:50%;}


