/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 20px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-white);
    white-space: nowrap;
    font-size: 16px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #fffa00;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -65px;
    padding-top: 150px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}

.project-item:hover img {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.2);
}

.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.bg-violet {
    background-color: #a61903 !important;
}

.conf-logo {
    width: 220px;
}

.right-logo {
    width: 120px;
}

.header-con-text h2 {
    font-size: clamp(24px, 4vw, 42px);
    /* mobile → desktop scaling */
    padding-top: 5px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: sans-serif;
    color: #a61903;
}

.header-con-text p {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 3px;
    font-family: sans-serif;

}

.display-1 {
    font-size: 1.6rem !important;
    line-height: 2rem;
}


/* container */
.counter-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 3vw, 35px);
    justify-items: center;
    align-items: center;
    margin-top: 30px;
}

/* each unit */
.counter-area .content {
    text-align: center;
}

/* circle number */
.counter-area .content p {
    width: clamp(70px, 12vw, 120px);
    height: clamp(70px, 12vw, 120px);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(20px, 4vw, 38px);
    font-weight: 700;
    color: #fff;

    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #ea580c, #f59e0b);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35);

    margin-bottom: 6px;
}

/* label text */
.counter-area .content span {
    font-size: clamp(11px, 1.3vw, 15px);
    font-weight: 600;
    letter-spacing: .8px;
    color: #000000 !important;
    opacity: .9;
}

@media (max-width: 992px) {
    .counter-area {
        grid-template-columns: repeat(2, 1fr);
        max-width: 380px;
        margin: auto;
    }
}

/* Mobile → single row */
@media (max-width: 576px) {
    .counter-area {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 18px;
        padding: 10px 5px;

        /* smooth scroll feel */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .counter-area .content {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    /* hide ugly scrollbar */
    .counter-area::-webkit-scrollbar {
        display: none;
    }
}

.counter-area .content p {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, .45);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.welcome-message-content p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 2rem;
}

.bg-dark {
    background-color: #250500 !important;
}


.table-wrap {
    overflow-x: auto;
}

.table thead.thead-primary {
    background: #250500;
}

.table thead th {
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    color: #fff;
}

.table thead th {
    vertical-align: middle;
    border-bottom: 2px solid #dee2e6;
    border: 1px solid white;
}

.table tbody tr {
    margin-bottom: 10px;
}

.table tbody th.scope {
    background: #e8ebf8;
    border-bottom: 2px solid #e0e5f6;
}

.table tbody th,
.table tbody td {
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    background: #fff;
    vertical-align: middle;
    border-bottom: 2px solid #f8f9fd;
    color: black;
}

.table tbody td:nth-child(odd) {
    background: #f4f6fc;
    border-bottom: 2px solid #eceffa;
}

.acco-table tbody td:nth-child(odd) {
    background: white;
    border-bottom: 2px solid #ffffff;
}

.pt-10-pm-30 {
    padding: 10px 30px;
}

/* .navbar {
    background: linear-gradient(90deg, #9f1239, #b91c1c);
}    */


.navbar-nav .nav-link {
    color: #fff;
    position: relative;
    transition: 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #fbbf24;
    /* golden accent */
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.header-carousel {
    position: relative;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(180deg, #b91c1c, #7f1d1d);
    opacity: 0.9;
    border-radius: 16px;
    z-index: -1;
}

.header-carousel img {
    border-radius: 20px;
}

.display-1 {
    font-size: clamp(32px, 4vw, 56px);
}

.welcome-btm-sec {
    text-align: center;
}



.welcome-btm-sec-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.navbar-nav .nav-link {
    padding: 12px 18px;
}

.contact-form {
    border-radius: 10px;
}

.form-custom {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    transition: 0.3s;
}

.form-custom:focus {
    border-color: #b71c1c;
    box-shadow: 0 0 0 0.15rem rgba(183, 28, 28, 0.15);
}

.btn-contact {
    background: #b71c1c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-contact:hover {
    background: #8c1515;
    color: #fff;
}