/*--------------------
-----Main Styles------
----------------------*/
body, html {
    height: auto;
    min-height: 100%;
}

body {
    background: #000;
}

.gallery-page {
    background: #fff;
}

#home {
    display: table;
    height: 100%;
    width: 100%;
    text-align: center;
}

body {
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    color: #313131;
    font-weight: 350;
    overflow-x: hidden;
}

h1,
h2,
h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 350;
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    line-height: 28px;
}

h5 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    line-height: 24px;
}

h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 350;
    margin: 0 0 20px;
    line-height: 22px;
    color: #FFFFFF;
}

h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 250;
    line-height: 30px;
    margin: 0 0 20px;
}

h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 350;
    letter-spacing: 0.15em;
    line-height: 30px;
    margin: 0 0 20px;
}

p {
    font-size: 18px;
    line-height: 28px;
    font-weight: 350;
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    line-height: 32px;
    font-weight: 350;
    letter-spacing: 0.02em;
    margin-top: 20px;
    margin-bottom: 40px;
}

a,
a:hover,
a:focus {
    outline: none !important;
    text-decoration: none;
}

a {
    color: #EA8825;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #EA8825;
    text-decoration: underline;
}

a:focus,
.btn:focus {
    outline: none;
}

.color-bg a {
    color: #fff;
    text-decoration: underline;
}

.color-bg a:hover,
.color-bg a:focus {
    color: #fff;
    text-decoration: none;
}

.primary {
    color: #EA8825;
}

/* Standalone Bootstrap 3-equivalent container: 1170px max, 15px padding, centered */
.container-bs3 [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}


.container-bs3 [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}
    
.container-bs3 {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
}

.container-bs3 .row {
    margin-left: -15px;
    margin-right: -15px;
}

.container-bs3 [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/*----------------------
---Main Layout Styles---
------------------------*/
.img-center {
    margin: 0 auto;
}

.header-videoimg {
    margin-bottom: 40px;
}

.header-videoimg video {
    width: 50%;
}

#streaming {
    padding: 16px 0;
}

.gif-container {
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: #000000;
}

.padding-top-bottom {
    padding: 100px 0;
}

.padding-top {
    padding: 100px 0 0;
}

.margin-bottom {
    margin-bottom: 40px;
}

/* BS5: navbar margin/radius handled via utility classes in HTML */
.navbar {
    margin: 0;
    border-radius: 0;
}

/* Subscribe link — vertically center the desktop right-pinned link */
#main-nav .nav-link.position-absolute {
    top: 50%;
    transform: translateY(-50%);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 64px;
    line-height: 78px;
    font-weight: 200;
    letter-spacing: 0;
    text-align: center;
}

.section-title-green {
    position: relative;
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 64px;
    line-height: 78px;
    font-weight: 200;
    letter-spacing: 0;
    text-align: center;
    color: #a0df80;
}

.section-title:after {
    display: block;
    content: "";
    width: 100px;
    height: 1px;
    position: absolute;
    left: 50%;
    bottom: -15px;
    margin-left: -50px;
    background: #EA8825;
}

.section-title-green:after {
    display: block;
    content: "";
    width: 100px;
    height: 1px;
    position: absolute;
    left: 50%;
    bottom: -15px;
    margin-left: -50px;
    background: #EA8825;
}

.section-description {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.subsection-title {
    text-align: center;
    margin-top: 80px;
}

.subsection-description {
    text-align: center;
    margin-bottom: 60px;
}

.big-title {
    position: relative;
    margin-bottom: 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 52px;
    line-height: 1.05em;
    font-weight: 150;
    letter-spacing: 0;
}

.big-title:after {
    display: block;
    content: "";
    width: 100px;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -20px;
    background: #EA8825;
}

.flexslider {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    -webkit-touch-callout: none;
    user-select: none;
    z-index: 1;
}

/*------------------
----- Buttons ------
--------------------*/

.btn-quattro,
.btn-quattro:focus {
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 20px 40px;
    display: inline-block;
    margin: 20px 0;
    text-decoration: none;
    font-weight: 400;
    outline: none;
    position: relative;
    background: #EA8825;
    color: #fff;
    border-radius: 5px;
    transition: all .2s ease-out;
}

.btn-quattro:hover,
.btn-quattro:active {
    color: #fff;
    background: #D97721;
    text-decoration: none;
    transition: all .2s ease-out;
}

.btn-quattro.transparent,
.btn-quattro.transparent:focus {
    background: transparent;
    padding: 18px 38px;
    border: 2px solid #fff;
    box-shadow: none;
    text-decoration: none;
    transition: all .2s ease-out;
}

.btn-quattro.transparent:hover,
.btn-quattro.transparent:active {
    background: #fff;
    color: #EA8825;
    top: 0;
    box-shadow: 0 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-quattro.white,
.btn-quattro.white:focus {
    background: #fff;
    color: #EA8825;
    box-shadow: none;
    text-decoration: none;
    transition: all .2s ease-out;
}

.btn-quattro.white:hover,
.btn-quattro.white:active {
    color: #fff;
    background: #EA8825;
    top: 0;
    text-decoration: none;
}

/* BS5: use .fa instead of [class*=fa] for Font Awesome 6 */
.btn-quattro .fa,
.btn-quattro [class*=fa] {
    margin-right: 10px;
}

.btn + .btn {
    margin-left: 10px;
}

/*----------------
----- Colors -----
------------------*/

.white-bg {
    background: #fff;
    padding-top: 50px;
}

.gray-bg {
    background: #f3f3f3;
}

.color-bg {
    background: #EA8825;
}

.dark-bg {
    background: #4E5961;
}

.light-typo {
    color: #fff;
}

.color-bg.light-typo .section-title:after {
    background: #fff;
}

.white-bg + .gray-bg,
.gray-bg + .white-bg {
    border-top: 1px solid #e5e5e5;
}

.parallax-bg {
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    background-attachment: fixed;
    border-top: 1px solid #fff;
}

.touch .parallax-bg {
    background-attachment: scroll;
}

/*-----------------------
---- Preloader Styles ----
-------------------------*/

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff;
    z-index: 99999;
}

#page-loader .page-loader-gif {
    display: block;
    width: 100%;
    height: 64px;
    position: absolute;
    top: 50%;
    left: 0;
    margin: -32px 0 0;
    font-size: 21px;
    line-height: 58px;
    font-family: Raleway;
    font-weight: 400;
    text-align: center;
    color: rgba(0, 0, 0, 0.2);
    background: url('../images/preloader.gif') 50% 0 no-repeat;
}

/*----------------------
----Navigation Styles---
------------------------*/

/* BS5: .sticky-wrapper pattern replaced with Bootstrap's sticky-top if needed */
.sticky-wrapper {
    background: #F3F3F3;
}

#main-nav {
    position: static;
    top: -70px;
    background: #DAE1F4;
    color: #000;
    box-shadow: none;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    transition: box-shadow .2s ease-out, top .3s ease-out .1s;
    z-index: 999999;
}

#main-nav.stuck {
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 99998;
}

/* BS5: .navbar-toggler replaces .navbar-toggler */
#main-nav .navbar-toggler {
    border: 1px solid #4E5961;
    border-radius: 0;
}

/* BS5: toggler icon uses SVG by default; override color via filter or custom icon */
#main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234E5961' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:active,
.navbar-brand:focus {
    position: relative;
    padding: 0 5px;
    margin: 3px 0;
    font-size: 28px;
    line-height: 54px;
    height: 40px;
    font-weight: 500;
    color: #000;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    transition: font-size .2s ease-out;
    overflow: hidden;
}

.site-logo {
    height: 40px;
    margin: 0;
    top: 0;
    color: #FF0004
}

#main-nav .container {
    padding: 0 10px;
    transition: padding 0.3s ease-out;
}

/* BS5: .nav-link replaces .nav a */
#main-nav .nav-link {
    position: relative;
    z-index: 1;
    padding: 5px 10px;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: transparent;
    color: #313131;
    opacity: 0.7;
    transition: opacity 0.2s ease-out;
    white-space: nowrap;
}

#main-nav .nav-link:active,
#main-nav .nav-link:hover {
    background: transparent;
    font-weight: 800;
    color: #313131;
    opacity: 0.7;
}

#main-nav.stuck .nav-item.active .nav-link,
#main-nav .nav-link:hover,
.inner-page #main-nav .nav-item.active .nav-link {
    opacity: 1;
}

#main-nav .nav-link:before {
    display: none;
    position: absolute;
    top: -1px;
    left: 1%;
    content: "";
    width: 100%;
    height: 3px;
    background: #EA8825;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease-out;
}

#main-nav .nav-item.active .nav-link:before {
    opacity: 1;
}

#main-nav.stuck .nav-item.active .nav-link:before {
    display: block;
}

#main-nav .nav-item {
    background: transparent;
    margin: 0 1px;
}

.inner-page .sticky-wrapper {
    background: #fff;
}

/*----------------------
-----Dropdown Styles----
------------------------*/

/* BS5: dropdown toggles via data-bs-toggle; CSS hover approach unchanged */
.dropdown > .nav-link:after,
.dropdown > a:after {
    content: "\f0d7";
    font-size: 2px;
    margin-left: 5px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.dropdown .dropdown > .nav-link:after,
.dropdown .dropdown > a:after {
    position: absolute;
    right: 10px;
    content: "\f0da";
    font-size: 14px;
    line-height: 18px;
    margin-left: 5px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.dropdown .left-side.dropdown > a:after {
    left: 5px;
    right: auto;
    content: "\f0d9";
}

.dropdown-menu {
    padding: 0;
    /* BS5 removed left/right !important pattern; use start/end offsets via popperConfig if needed */
    display: block;
    border-radius: 0;
    visibility: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .2s ease-out, transform .2s ease-out;
}

.dropdown-menu .dropdown-menu {
    top: -4px;
    left: 100%;
}

.dropdown-menu .left-side .dropdown-menu {
    top: -4px;
    left: auto;
    right: 100%;
}

.dropdown:hover > .dropdown-menu {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

#main-nav .dropdown:hover > .nav-link {
    opacity: 1;
}

#main-nav .dropdown-menu .nav-item,
#main-nav .dropdown-menu li {
    padding: 0;
    margin: 0;
}

#main-nav .dropdown-menu .nav-link,
#main-nav .dropdown-menu a {
    padding: 17px 20px 17px 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 10px;
    color: #313131;
    text-transform: none;
    transition: all .2s ease-out;
}

#main-nav .dropdown-menu .nav-link:hover,
#main-nav .dropdown-menu a:hover {
    padding: 17px 50px 17px 30px;
    font-size: 16px;
    font-weight: 800;
    line-height: 14px;
    color: #313131;
    text-transform: none;
    background: #f9fbfc;
    transition: all .2s ease-out;
}

#main-nav .dropdown-menu .nav-link:before,
#main-nav .dropdown-menu a:before {
    display: none !important;
}

/* BS5: centering nav — flex row, no float overrides */
.navbar-center {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.navbar-collapse {
    text-align: center;
    flex-grow: 1;
}

/*end dropdown*/

/*----------------------
-----Header Styles------
------------------------*/

#home {
    color: #fff;
    padding: 0;
    margin-bottom: 0;
}

#home .header-content {
    position: relative;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

#home .header-content.pattern-bg {
    background: url(../images/pattern-bg.png);
    background-color: rgba(0, 0, 0, 0.5);
}

.header-logo {
    position: absolute;
    right: 5%;
    width: 240px;
    margin-left: -120px;
}

.scroll-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    margin-left: -35px;
    color: #fff !important;
    padding: 20px;
    font-size: 48px;
    animation: moving 2s ease-out infinite;
}

@keyframes moving {
    0%  { bottom: 30px; }
    30% { bottom: 10px; }
    60% { bottom: 30px; }
}

#home h1 {
    margin: 0;
    font-size: 63px;
}

#home p {
    margin: 0;
}

#home .large-text {
    margin-bottom: 10px;
    font-size: 86px;
    line-height: 92px;
    font-weight: 900;
}

#home .bordered-text {
    display: inline-block;
    border: 5px solid #fff;
    margin: 0 50px 0;
    padding: 20px 30px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 58px;
    line-height: 72px;
    font-weight: 600;
    text-transform: uppercase;
}

.header-slider li {
    transform: translateY(50px);
    transition: transform .4s ease-out;
}

.header-slider li.flex-active-slide {
    transform: translateY(0);
    transition: transform .4s ease-out .1s;
}

/*V2 (Inner Pages)*/

#inner-page-header {
    position: relative;
}

#inner-page-header .header-content {
    color: #fff;
    padding: 10% 0 10%;
    text-align: center;
}

#inner-page-header .bordered-text {
    display: inline-block;
    position: relative;
    border: 4px solid #fff;
    margin: 0 50px 0;
    padding: 20px 30px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 48px;
    line-height: 72px;
    font-weight: 400;
    text-transform: uppercase;
}

/*-------------------------
------ About Styles -------
--------------------------*/
#about {
    padding-bottom: 80px;
}

#about img {
    margin-bottom: 30px;
}

/*-------------------------
------Call to action-------
--------------------------*/
.cta {
    padding: 50px 0 30px;
}

.cta .cta-message p {
    padding: 15px 0 20px;
    font-size: 22px;
    line-height: 34px;
}

.cta .cta-message strong {
    font-size: 24px;
    letter-spacing: 0.02em;
}

.cta .cta-button {
    padding: 0;
}

/*--------------------
---Features Styles---
----------------------*/
.features .section-description {
    margin-bottom: 20px;
}

/* BS5: .float-start / .float-end replace .float-start / .float-end */
.features .media .float-end {
    margin-left: 10px;
    padding: 0;
}

.features .media .float-start {
    margin-right: 10px;
    padding: 0;
}

.features .icon {
    width: 80px;
    height: 80px;
    text-align: center;
    background: transparent;
    color: #EA8825;
    font-size: 26px;
    line-height: 80px;
    border: 1px solid #EA8825;
    border-radius: 50%;
    transition: all .3s ease-out 0s;
}

.features .media:hover .icon {
    background: #EA8825;
    color: #fff;
}

.features .icon .icon-1 {
    width: 80px;
    opacity: 1;
    transform: scale(1);
    transition: all .3s ease-out .0s;
}

.features .icon .icon-2 {
    width: 80px;
    position: relative;
    top: -80px;
    opacity: 0;
    transform: scale(2);
    transition: all .3s ease-out 0s;
}

.features .media:hover .icon .icon-1 {
    opacity: 0;
    transform: scale(0);
    transition: all .3s ease-out 0s;
}

.features .media:hover .icon .icon-2 {
    opacity: 1;
    transform: scale(1);
    transition: all .3s ease-out .0s;
}

.features .media {
    margin-bottom: 40px;
}

.features .media-body p {
    font-size: 16px;
}

.features .media h4 {
    transition: color .3s ease-out;
}

.features .media:hover h4 {
    color: #EA8825;
}

/*-----------------------
-----Services Styles-----
-------------------------*/
.services {
    margin-top: 80px;
    margin-bottom: 40px;
}

.services .icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    text-align: center;
    line-height: 150px;
    font-size: 48px;
    color: #fff;
    background: #EA8825;
    border: 1px solid #EA8825;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.0);
    margin-bottom: 40px;
    transition: all .3s ease-out;
}

.services .item:hover .icon {
    color: #EA8825;
    background: #fff;
    border: 1px solid #ddd;
}

.services .item:hover [class*=fa] {
    transform: scale(1.2);
    transition: all .3s ease-out;
}

.services h3 {
    font-size: 21px;
    font-weight: 400;
    text-transform: uppercase;
    transition: color .3s ease-out;
}

.services .item:hover h3 {
    color: #EA8825;
}

.services p {
    padding: 0 20px;
    font-size: 16px;
    line-height: 21px;
}

/*--------------------
----Counters Styles----
----------------------*/

.counter {
    margin-top: 20px;
    font-size: 98px;
    line-height: 1.05em;
    font-weight: 100;
    color: #EA8825;
}

.counter + p {
    font-size: 18px;
    color: #aaa;
}

/*-------------------
-----Team Styles-----
---------------------*/
.team-member {
    margin-bottom: 30px;
    position: relative;
}

.member-thumb {
    position: relative;
    text-align: center;
    border: 1px solid #ddd;
    border-bottom: none;
    overflow: hidden;
}

.member-thumb img {
    transition: transform .2s ease-out;
}

.team-member:hover .member-thumb img {
    transform: scale(1.3);
}

.member-details h4 {
    margin: 0;
    font-size: 21px;
}

.member-details .title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #EA8825;
    transition: all .3s ease-out;
}

.member-details p {
    margin: 0;
    font-size: 14px;
}

.team-member .member-details {
    margin: 0;
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    transition: all .3s ease-out;
}

.team-member:hover .member-details {
    background: #EA8825;
    color: #fff;
}

.team-member:hover .member-details .title {
    color: #fff;
}

.team-member .member-socials {
    bottom: 20px;
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.team-member .member-socials li {
    display: inline-block;
    text-align: center;
    margin: 0 2px;
    opacity: 0;
    transform: translateY(50px);
    transition: all .2s ease-out;
}

.team-member:hover .member-socials li:nth-child(2) { transition-delay: .1s; }
.team-member:hover .member-socials li:nth-child(3) { transition-delay: .2s; }
.team-member:hover .member-socials li:nth-child(4) { transition-delay: .3s; }
.team-member:hover .member-socials li:nth-child(5) { transition-delay: .4s; }

.team-member:hover .member-socials li {
    opacity: 1;
    transform: translateY(0px);
}

.team-member .member-socials li a {
    display: inline-block;
    padding: 0;
    min-width: 40px;
    height: 40px;
    font-size: 21px;
    line-height: 40px;
    color: #EA8825;
    background: rgba(255, 255, 255, .8);
    border-radius: 5px;
    transition: all .3s ease-out;
}

.team-member .member-socials li a:hover {
    background: #EA8825;
    color: #fff;
}

/*-----------------------
--- Portfolio Styles ----
-------------------------*/
#figure {
    margin-bottom: 10px;
}

#portfolio {
    background: #fff;
    color: #313131;
}

#filter-works ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

#filter-works ul li {
    position: relative;
    display: inline-block;
    padding: 0;
    line-height: 24px;
    background: transparent;
    margin: 0;
    margin-bottom: 10px;
}

#filter-works ul li a {
    display: block;
    font-size: 16px;
    line-height: 28px;
    height: 48px;
    text-transform: uppercase;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all .2s ease-out;
}

#filter-works ul li a,
#filter-works ul li a:active,
#filter-works ul li a:hover {
    font-weight: 300;
    background: transparent;
    color: #313131;
    text-decoration: none;
}

#filter-works ul li.active a,
#filter-works ul li:hover a {
    color: #fff;
    background: #EA8825;
    border: 1px solid #EA8825;
}

.masonry-wrapper {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

#projects-container {
    margin: 0 auto;
    width: 100%;
    visibility: hidden;
}

#projects-container .project-item {
    display: block;
    position: relative;
    margin: 0;
    width: 24.96%;
    margin-bottom: 0;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: scale(1);
    opacity: 1;
    overflow: hidden;
    z-index: 10;
    backface-visibility: hidden;
}

#projects-container .project-item.filtered {
    transform: scale(0);
    opacity: 0;
    z-index: 0;
    backface-visibility: hidden;
}

.project-item:hover {
    cursor: pointer;
}

.project-item img {
    height: 220px;
    width: 100%;
    transform: scale(1);
    opacity: 1;
    transition: transform .3s ease-in, opacity .3s ease-out;
    backface-visibility: hidden;
}

.project-desc {
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #313131;
    font-weight: 350;
    overflow-x: hidden;
    text-align:center;
}

.project-item:hover img {
    transform: scale(1.6);
    transition: transform 3s linear, opacity .3s ease-out;
}

.project-item .hover-mask {
    position: absolute;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.project-item:hover .hover-mask {
    opacity: .95;
}

.project-item .hover-mask .project-title {
    position: relative;
    color: #fff;
    top: 50%;
    margin: 0;
    margin-top: -40px;
    padding: 10px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 300;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease-out;
}

.project-item:hover .hover-mask .project-title {
    transform: translateY(0);
    opacity: 1;
}

.project-item .hover-mask p {
    position: relative;
    color: #fff;
    top: 50%;
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    text-align: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-out 0s;
}

.project-item:hover .hover-mask p {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease-out .2s;
}

.masonry,
.masonry .masonry-brick {
    transition-duration: 0.4s;
    transition-timing-function: ease-in-out;
}

.masonry {
    transition-property: height, width;
}

.masonry .masonry-brick {
    transition-property: left, right, top, transform, opacity;
}

/* Press page columns */
.press-columns {
    column-count: 2;
    column-gap: 50px;
}

.press-columns .media {
    break-inside: avoid;
    margin-bottom: 10px;
}

/* Stack to one column on mobile */
@media (max-width: 767px) {
    .press-columns {
        column-count: 1;
    }
}

/*----------------------------
----Project Preview Styles----
-----------------------------*/

#project-preview {
    display: none;
    position: relative;
    max-width: 700px;
    margin: 0px auto 60px;
    font-weight: 400;
    opacity: 0;
    letter-spacing: 0.02em;
    overflow: visible !important;
}

.touch #project-preview {
    opacity: 1 !important;
}

#project-title {
    margin: 20px 0 20px ;
    font-family: Raleway;
    font-size: 38px;
    line-height: 42px;
    font-weight: 100;
    text-align: center;
}

#project-preview p {
    margin-bottom: 0px;
}

.close-preview {
    position: absolute;
    padding: 5px;
    margin-left: -17px;
    left: 50%;
    top: -60px;
    font-size: 44px;
    line-height: 44px;
    font-weight: 300;
    color: #EA8825;
    cursor: pointer;
}

#project-slider {
    min-height: 450px;
}

#project-slider.flexslider {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    user-select: none;
}

#project-slider .flex-direction-nav { display: none; }
#project-slider .flex-control-nav { width: 100%; position: absolute; bottom: -40px; text-align: center; }
#project-slider .flex-control-nav li { margin: 0 6px; display: inline-block; }
#project-slider .flex-control-paging li a { width: 36px; height: 12px; display: block; background: rgba(0,0,0,0.1); cursor: pointer; text-indent: -9999px; border-radius: 0; box-shadow: none; }
#project-slider .flex-control-paging li a:hover { background: #EA8825; }
#project-slider .flex-control-paging li a.flex-active { background: #EA8825; cursor: default; }

/*-------------------
------ Prices -------
---------------------*/

.pricing .item {
    position: relative;
    top: 20px;
    background: rgba(255, 255, 255, 1);
    padding-top: 40px;
    padding-bottom: 40px;
    border: 1px solid #ddd;
    color: #777;
    transition: all .3s ease-out;
}

.pricing .item.featured {
    top: 0;
    padding-top: 50px;
    padding-bottom: 50px;
}

.pricing .item:hover,
.pricing .item.featured {
    background: #EA8825;
    color: #fff;
}

.pricing .item h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
}

.pricing .item.featured h2 {
    margin-bottom: 10px;
}

.pricing .item p {
    margin-bottom: 5px;
    font-weight: 400;
}

.pricing .item .icon {
    display: block;
    margin-bottom: 30px;
    margin: 0 0 30px;
    background: url(../images/dark_mosaic.png) 0 0;
    width: auto;
    height: 80px;
    font-size: 48px;
    line-height: 80px;
    color: #fff;
    transition: all .3s ease-out;
}

.pricing .item.featured .icon,
.pricing .item:hover .icon {
    color: #EA8825;
    background: #fff;
}

.pricing .item .btn-quattro {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 16px;
    padding: 10px 20px;
}

.pricing .item.featured .btn-quattro,
.pricing .item:hover .btn-quattro {
    background: #fff;
    color: #EA8825;
}

.pricing .item .price {
    font-size: 48px;
    font-weight: 100;
    line-height: 48px;
    margin-bottom: 30px;
}

.pricing .item.featured .price {
    margin-bottom: 40px;
}

/*----------------------
-----Clients Styles-----
------------------------*/
.clients .client {
    max-width: 300px;
    margin: 0 auto 0;
    padding: 30px;
    overflow: hidden;
}

.client img {
    transform: scale(1);
    transition: all .3s ease-out;
}

.client img:hover {
    transform: scale(1.1);
}

/*----------------------
-----Testimonials ------
------------------------*/
#testimonials .quote-icon {
    padding-top: 6px;
    text-align: center;
}

#testimonials .fa-quote-left {
    font-size: 48px;
    margin-bottom: 20px;
}

#testimonials a:hover,
#testimonials a:active,
#testimonials a:focus {
    text-decoration: none;
}

#testimonials .media-body {
    padding: 15px 0 0 30px;
}

#testimonials .testimonial {
    font-size: 24px;
    line-height: 34px;
    font-weight: 300;
    font-style: italic;
    word-spacing: 5px;
    margin-bottom: 20px;
}

#testimonials .tweet a:hover { text-decoration: underline; }

#testimonials .client-img {
    width: auto;
    margin: 0 auto;
}

#testimonials .client {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 15px;
}

#testimonials .client span {
    font-style: italic;
}

#testimonials-slider {
    margin: 0;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
    background: transparent;
}
#testimonials-slider .flex-control-nav { width: 100%; position: absolute; bottom: -20px; text-align: center; }
#testimonials-slider .flex-control-nav li { margin: 0 6px; display: inline-block; }
#testimonials-slider .flex-control-paging li a { width: 36px; height: 12px; display: block; background: rgba(255,255,255,0.1); cursor: pointer; text-indent: -9999px; border-radius: 0; box-shadow: none; }
#testimonials-slider .flex-control-paging li a:hover { background: #EA8825; }
#testimonials-slider .flex-control-paging li a.flex-active { background: #EA8825; cursor: default; }

#testimonials-slider li {
    transform: translateY(50px);
    transition: transform 7s ease-out;
    transition-delay: .5s;
}

#testimonials-slider li.flex-active-slide {
    transform: translateY(0);
    transition: transform .5s ease-out 10s;
    transition-delay: .5s;
}

/*----------------------
-----Contact Styles-----
------------------------*/
.contact-section {
  width: 100%;
  align-content: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1rem;
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: rgb(107 114 128);
}

.form-group-container {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  height: 4rem;
  width: 100%;
  border-radius: 0.375rem;
  font-size: 18px;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
}

.form-submit {
  width: 160px;
  margin-top: 1.2rem;
  align: center;
  background-color: #0088FA;
  color: #fff;
  padding: 13px 5px;
  border-radius: 0.375rem;
}

#gmap {
    display: block;
    height: 100%;
    width: 100%;
    left: 0;
    position: absolute !important;
    top: 0;
    z-index: 0 !important;
}

#gmap-overlay {
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9 !important;
}

#toggle-map {
    display: block;
    position: absolute;
    padding: 20px 0;
    width: 100%;
    top: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, .4);
    z-index: 3;
    cursor: pointer;
    transition: all .2s ease-out;
}

.show-map #toggle-map {
    background: rgba(0, 0, 0, .85);
}

#toggle-map:hover {
    color: #EA8825;
    text-decoration: none;
}

#toggle-map:after {
    margin-left: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 21px;
    line-height: 21px;
    content: '\f107';
    vertical-align: bottom;
}

#toggle-map .hide-map-text {
    display: none;
}

#gmap .infowin {
    padding: 10px 20px;
}

#gmap .infowin p {
    margin-bottom: 10px;
    font-family: Raleway, Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #777;
}

#gmap .infowin a:hover { text-decoration: underline; }

/*----------------------
-----Footer Styles------
------------------------*/

#main-footer {
    padding: 40px 0 20px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c1c2c3;
}

.social-links li {
    display: inline-block;
    margin: 0 5px 5px;
    transition: all .3s ease-out;
}

.social-links li a {
    display: block;
    color: #313131;
    font-size: 28px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    transition: all .3s ease-out;
}

.social-links li:hover {
    background: #fff;
}

.social-links li:hover a {
    color: #EA8825;
}

/*----------------------
----- Blog Styles ------
------------------------*/
.post-entry {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 20px;
}

.post-footer {
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.post-title {
    margin: 0 0 5px;
    font-size: 24px;
}

.post-meta {
    padding: 0;
    margin-bottom: 20px;
}

.post-title a,
.post-meta a {
    color: inherit;
    transition: color .2s ease-out;
}

.post-title a:hover,
.post-meta a:hover {
    color: #EA8825;
    text-decoration: none;
}

.post-meta li {
    display: inline;
    list-style: none;
    color: #999;
}

.post-meta li:after {
    content: '|';
    margin: 0 5px;
}

.post-meta li:last-child:after {
    content: '';
}

/* BS5: use .fa instead of .fa for Font Awesome 6 */
.post-meta .fa {
    margin-right: 5px;
}

.post-thumb {
    position: relative;
    display: block;
    margin-bottom: 20px;
    overflow: hidden;
}

.post-thumb:before {
    position: absolute;
    display: block;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: 1;
    transition: opacity .2s ease-out;
}

.post-thumb:hover:before { opacity: .8; }

.post-thumb:after {
    position: absolute;
    display: block;
    margin: -25px 0 0 -25px;
    /* BS5/FA6: use Unicode for fa-external-link-alt */
    content: '\f08e';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 32px;
    line-height: 50px;
    text-align: center;
    color: #fff;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    z-index: 2;
    opacity: 0;
    transform: translate(-80px, 80px);
    transition: all .3s ease-out;
}

.post-thumb:hover:after {
    opacity: 1;
    transform: translate(0, 0);
}

.post-link:after {
    margin-left: 15px;
    content: '\f105';
    font-size: 18px;
    line-height: 14px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: margin .25s ease-out;
}

.post-link {
    transition: padding .2s ease-out;
}

.post-link:hover {
    padding-left: 10px;
    text-decoration: none;
}

.post-link:hover:after {
    margin-left: 25px;
}

#blog-list .post-entry {
    padding: 40px 0 40px;
    border-bottom: 1px solid #ddd;
}

#blog-list .post-entry:first-child {
    padding-top: 0;
}

#blog-list .post-title,
#single-post .post-title {
    font-size: 32px;
}

/* BS5: pagination uses .page-item / .page-link natively; override styles */
.pagination li {
    display: inline-block;
    margin-right: 1px;
}

.pagination li a {
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #aaa;
    border-radius: 0 !important;
    min-width: 32px;
    color: #666;
    transition: all .1s ease-out;
}

.pagination li.active a,
.pagination li.active a:hover,
.pagination li a:hover {
    background: #EA8825;
    border: 1px solid #EA8825;
    color: #fff;
}

.video-container {
    margin-bottom: 20px;
}

.post-slider.flexslider {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 0;
}

.post-slider .flex-direction-nav .flex-prev,
.post-slider .flex-direction-nav .flex-next {
    background: rgba(0, 0, 0, 0.3);
    background-image: none;
    display: inline;
    text-indent: 0;
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    padding-left: 12px;
    margin: 0;
    margin-top: -22px;
    font-size: 42px;
    line-height: 38px;
    color: #fff;
    border-radius: 2px;
    opacity: .5;
    transition: all .2s ease-out;
}

.post-slider .flex-direction-nav .flex-prev { left: 5px; }
.post-slider .flex-direction-nav .flex-next { text-align: right; padding-right: 12px; right: 5px; }

.post-slider .flex-direction-nav a:hover,
.post-slider .flex-direction-nav a:active,
.post-slider .flex-direction-nav a:focus {
    text-decoration: none;
}

.post-slider .flex-direction-nav a:hover { background: rgba(0,0,0,0.5); }
.post-slider:hover .flex-next { opacity: 1; right: 15px; }
.post-slider:hover .flex-prev { opacity: 1; left: 15px; }

/*sidebar + widgets*/
#main-sidebar {
    padding-left: 50px;
}

#main-sidebar.left-sidebar {
    padding-left: 15px;
    padding-right: 50px;
}

.bg-video {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.bg-video:before {
    display: block;
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .5;
    z-index: -1;
}

.video-bg-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: -999;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.play-video {
    display: inline-block;
    color: #fff !important;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 42px;
    line-height: 94px;
    text-align: center;
    padding-left: 10px;
    margin-bottom: 40px;
    transition: transform .3s ease;
}

.play-video:hover {
    transform: scale(1.05);
}

.play-video .fa-play {
    transition: transform .3s ease;
}

.play-video:hover .fa-play {
    transform: scale(0.85);
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    position: relative;
    padding-top: 15px;
    margin-bottom: 45px;
}

.widget-title:after {
    display: block;
    content: "";
    width: 60px;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -15px;
    background: #EA8825;
}

.tag {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 14px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all .2s ease-out;
}

.tag,
.tag:active,
.tag:hover,
.tag:focus {
    font-weight: 300;
    background: transparent;
    color: #313131;
    text-decoration: none;
}

.tag:hover {
    color: #fff;
    background: #EA8825;
    border: 1px solid #EA8825;
}

.post-footer .fa-tags {
    color: #EA8825;
    font-size: 18px;
}

.post-footer .tag {
    font-size: 13px;
    padding: 5px 10px;
}

#search-form .form-control {
    display: inline;
    padding-right: 40px;
    background: transparent;
    border-radius: 2px;
    border-color: #ddd;
    box-shadow: none;
    color: #777;
    outline: none;
    font-weight: 300;
}

#search-form {
    position: relative;
}

#search-form .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #aaa;
}

#search-form button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 7px 10px;
    font-size: 21px;
    line-height: 32px;
    background: none;
    border: none;
    color: #ddd;
    transition: color .15s ease-out;
}

#search-form button:hover { color: #EA8825; }

.widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.widget ul li {
    border-bottom: 1px solid #ddd;
}

.widget ul li:first-child {
    border-top: 1px solid #ddd;
}

.widget ul li a {
    display: block;
    position: relative;
    color: inherit;
    padding: 12px 0;
    padding-left: 5px;
    text-decoration: none;
    transition: all .25s ease-out;
}

.widget ul li a:hover {
    padding-left: 10px;
    color: #EA8825;
}

.widget ul li a:after {
    position: absolute;
    right: 10px;
    margin-left: 15px;
    content: '\f105';
    font-size: 18px;
    line-height: 24px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: margin 2.5s ease-out;
}

.widget .media img {
    max-width: 80px;
    opacity: 1;
    transition: opacity 1.0s ease-out;
}

.widget .media a:hover img {
    opacity: 0.8;
}

.widget .media-body .small {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1em;
    color: #aaa;
}

.widget .media-body p {
    font-size: 15px;
}

.widget .media a {
    color: inherit;
    text-decoration: none;
    transition: all 1.0s ease-out;
}

.widget .media a:hover { color: #EA8825; }

/*Comments*/

.post-comments {
    margin-top: 70px;
}

.post-comments .media-list .media {
    padding: 30px;
    border: 1px solid #ddd;
}

.post-comments .media-list .media .media {
    padding: 15px 0 0;
    border: none;
}

.post-comments .media-list .replies {
    border-bottom: 1px dotted #ddd;
    text-align: center;
}

.post-comments .media-list .replies span {
    position: relative;
    top: 10px;
    padding: 0 30px;
    background: #fff;
}

.post-comments .media-heading {
    margin-bottom: 10px;
}

.post-comments .media-heading h5 {
    margin-bottom: 0;
}

.post-comments .media-heading .comment-date {
    color: #aaa;
    font-size: 23px;
    line-height: 13px;
}

#comment-form {
    margin-top: 80px;
}

#comment-form h3 {
    margin-bottom: 10px;
}

#comment-form small {
    color: #aaa;
}

#comment-form .form-header {
    margin-bottom: 30px;
}

#comment-form label {
    display: none;
}

.no-placeholder #comment-form label {
    display: block;
}

#comment-form .controls {
    padding: 0;
    margin-bottom: 30px;
}

#comment-form .form-control {
    display: inline;
    background: transparent;
    border-radius: 2px;
    border-color: #ddd;
    box-shadow: none;
    color: #999;
    outline: none;
    height: 52px;
    font-weight: 300;
}

#comment-form .form-group {
    position: relative;
}

#comment-form textarea.form-control {
    height: auto;
    max-width: 100%;
    min-width: 100%;
    vertical-align: top;
}

#comment-form .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #999;
}

#comment-form .btn-quattro {
    padding: 15px 40px;
    margin: 0;
    border-radius: 2px;
}

/*-----------------------
-----Scrollimations------
------------------------*/
.scrollimation.fade-in {
    opacity: 0;
    transition: opacity 2.5s ease-out;
}

.scrollimation.fade-in.in { opacity: 1; }

.scrollimation.scale-in {
    opacity: 0;
    transform: scale(0.5);
    transition: transform .6s cubic-bezier(.17,.89,.67,1.57), opacity .75s ease-out;
}

.scrollimation.scale-in.in {
    opacity: 1;
    transform: scale(1);
}

.scrollimation.fade-right {
    opacity: 0;
    transform: translateX(-100px);
    transition: transform .4s ease-out, opacity .4s ease-out;
}

.scrollimation.fade-right.in {
    opacity: 1;
    transform: translateX(0px);
}

.scrollimation.fade-left {
    opacity: 0;
    transform: translateX(100px);
    transition: transform .4s ease-out, opacity .4s ease-out;
}

.scrollimation.fade-left.in {
    opacity: 1;
    transform: translateX(0px);
}

.scrollimation.fade-up {
    opacity: 0;
    transform: translateY(100px);
    transition: transform 1.0s ease-out, opacity .4s ease-in-out;
}

.scrollimation.fade-up.in {
    opacity: 1;
    transform: translateY(0px);
}

.scrollimation.d1 { transition-delay: .5s; }
.scrollimation.d2 { transition-delay: .5s; }
.scrollimation.d3 { transition-delay: .5s; }
.scrollimation.d4 { transition-delay: .5s; }

.touch .scrollimation.fade-in  { opacity: 1; }
.touch .scrollimation.scale-in { opacity: 1; transform: scale(1); }
.touch .scrollimation.fade-right { opacity: 1; transform: translateX(0px); }
.touch .scrollimation.fade-left  { opacity: 1; transform: translateX(0px); }
.touch .scrollimation.fade-up    { opacity: 1; transform: translateY(0px); }

/*----------------------
-----Video Styles-------
------------------------*/

/* Video play button overlay on thumbnail */
.video-item .video-play-icon {
    position: absolute;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.85);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20px);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.5s ease-out;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.video-item:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* YouTube iframe inside the preview panel */
#project-slider .yt-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

#project-slider .yt-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*----------------------
-----Media Queries------
------------------------*/

@media (max-width: 991px) {

    #home .bordered-text {
        border: 4px solid #fff;
        padding: 15px 25px;
        font-size: 48px;
        line-height: 62px;
    }

    .cta-image { padding-bottom: 60px; }

    #projects-container .project-item { width: 49.98%; }

    .team-member { margin-bottom: 60px; }

    .team-member .member-thumb,
    .team-member .member-details {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    #project-slider { min-height: 0; }

    #inner-page-header .bordered-text {
        border: 4px solid #fff;
        padding: 15px 30px;
        font-size: 38px;
    }

    #main-sidebar { padding-left: 35px; }
    #main-sidebar.left-sidebar { padding-right: 35px; }

    .post-comments .media-body p { font-size: 14px; }
    .post-comments .media-list .media { padding: 20px 10px; }

    /* BS5: .rounded-circle replaces .img-circle */
    .post-comments .media .rounded-circle { max-width: 60px; }
}

/* BS5: dropdown visibility is handled by JS and CSS hover below; removed display:block !important override */

@media (max-width: 767px) {

    body, p {
        font-size: 16px;
        line-height: 21px;
    }

    h1,
    .skills h2 {
        font-size: 24px;
        line-height: 28px;
    }

    h2,
    #blog-list .post-title,
    #single-post .post-title {
        font-size: 21px;
        line-height: 24px;
    }

    .section-title {
        font-size: 32px;
        line-height: 36px;
    }

    .section-description { font-size: 16px; }
    .big-title { font-size: 32px; }

    .header-logo {
        width: 180px;
        top: 20%;
        margin-left: -90px;
    }

    .header-slider { margin-top: 40px; }

    #home .bordered-text {
        border: 3px solid #fff;
        margin: 0 20px 0;
        padding: 10px 20px;
        font-size: 32px;
        line-height: 44px;
    }

    .counter { font-size: 68px; }

    .cta .cta-message p,
    .cta .cta-message strong {
        font-size: 18px;
        line-height: 24px;
    }

    /* BS5: navbar-toggler margin */
    #main-nav .navbar-toggler { margin-top: 14px; }

    /* Fix: extend nav background past the last item (Contact) on mobile */
    #main-nav .navbar-collapse {
        padding-bottom: 8px;
    }

    #main-nav .nav-link {
        line-height: 42px !important;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }

    /* Subscribe/icons group sits outside the collapsed menu — no underline/border */
    #main-nav .d-flex .nav-link {
        border-bottom: none !important;
        line-height: normal !important;
    }

    #main-nav .d-flex .nav-link:hover,
    #main-nav .d-flex .nav-link:focus,
    #main-nav .d-flex .nav-link:active {
        text-decoration: none;
    }

    #main-nav .nav-link:before { display: none !important; }

    #main-nav.stuck .nav-item.active .nav-link,
    #main-nav .nav-link:hover {
        opacity: 1;
        color: #000;
    }

    #main-nav .nav-item {
        clear: both;
        position: static !important;
    }

    .cta .cta-message { text-align: center; }

    .services .item { margin-bottom: 60px; }

    #project-title { font-size: 32px; }

    .team-member { margin-bottom: 60px; }

    .team-member .member-thumb,
    .team-member .member-details {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    /* BS5: .float-none replaces float:none overrides */
    #testimonials .float-start {
        display: block;
        float: none !important;
        width: 100%;
        margin-bottom: 10px;
    }

    #testimonials .testimonial {
        font-size: 18px;
        line-height: 28px;
    }

    .project-item .project-thumb {
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing .item {
        top: 0;
        margin: 0 auto 40px;
        max-width: 400px;
    }

    #main-sidebar { display: none; }

    #site-nav { max-height: 600px; }

    .dropdown .left-side.dropdown > a:after,
    .dropdown .dropdown > a:after {
        position: static;
        content: "\f0d7";
        font-size: 14px;
        margin-left: 5px;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    .dropdown-menu .dropdown-menu,
    .dropdown-menu {
        position: static;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        padding: 0;
        display: none;
        width: 100% !important;
        visibility: visible;
        box-shadow: none !important;
        border: none !important;
        transform: translateY(0);
        opacity: 1;
    }

    #main-nav .dropdown-menu .nav-item,
    #main-nav .dropdown-menu li {
        position: static;
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #main-nav .dropdown-menu .nav-link,
    #main-nav .dropdown-menu a {
        clear: none;
        padding: 5px 0;
        font-size: 16px;
        line-height: 46px !important;
    }

    #main-nav .dropdown-menu .nav-link:hover,
    #main-nav .dropdown-menu a:hover {
        padding: 5px 0;
        font-size: 16px;
        line-height: 16px;
        color: #EA8825;
        background: none;
    }

    #inner-page-header .bordered-text {
        margin-left: 30px;
        margin-right: 30px;
        padding: 15px;
        font-size: 21px;
        line-height: 32px;
    }

    .padding-top-bottom #single-post { margin-top: -50px; }

    /* BS5: .float-start replaces .float-start; already handled by utility classes in HTML */
    .features .media .float-end {
        float: left !important;
        margin-left: 0;
        margin-right: 10px;
    }

    .features .media .float-end + .text-end {
        text-align: left;
    }

    .post-comments .media .media,
    .post-comments .media .replies {
        margin-left: -50px;
    }

    .post-comments .btn {
        width: 100%;
    }

    .header-videoimg {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 479px) {
    #projects-container {
        display: block;
        text-align: center;
        height: auto !important;
    }
    #projects-container .project-item {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        float: none;
        display: block;
        margin: 0 auto;
    }

    /* On mobile, truly hide filtered-out items so the page height
       shrinks to fit only the visible thumbnails */
    #projects-container .project-item.filtered {
        display: none !important;
        transform: none !important;
    }
}

/* Same fix for tablets in single-column layout territory */
@media (max-width: 767px) {
    #projects-container .project-item.filtered {
        display: none !important;
        transform: none !important;
    }
}
