/********** 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: 5px 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-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.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: -136px;
    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;
}

.navbar-brand img {
    max-width: 180px;
    height: auto;
}

/* dropdown */
/* Basic reset */
.dropdown-menu-root,
.dropdown-menu-root ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Base menu style */
.dropdown-menu-root {
    background: #fff;
    border: 1px solid #ddd;
    width: 250px;
    position: relative;
}

/* First level items */
.dropdown-menu-root>li {
    position: relative;
}

.dropdown-menu-root li a {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.dropdown-menu-root li a:hover {
    background-color: #f2f2f2;
}

/* Submenu hidden by default */
.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    min-width: 200px;
    border: 1px solid #ccc;
    z-index: 1000;
}

/* Show submenu on hover */
.dropdown-menu-root li:hover>.submenu {
    display: block;
}

/* Arrow indicator */
.dropdown-menu-root li>a::after {
    content: '';
    float: right;
    border: solid transparent;
    border-width: 5px 0 5px 5px;
    border-left-color: #999;
    margin-top: 5px;
}

.dropdown-menu-root li:not(:has(.submenu))>a::after {
    content: '';
    /* no arrow for items without submenu */
    border: none;
}


/* //// personal info//// */

.profile-section {
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.profile-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.subheading {
    color: #555;
    margin-bottom: 25px;
    font-size: 18px;
}

.section-title {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #1a73e8;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.profile-section p {
    line-height: 1.6;
    color: #333;
}

.contact-info {
    margin-top: 30px;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contact-info strong {
    display: inline-block;
    width: 120px;
    color: #444;
}

@media (max-width: 600px) {
    .profile-section {
        padding: 20px;
    }

    .profile-header h2 {
        font-size: 26px;
    }
}

/* smooth movement + zoom */
.btn-custom {
    transition: transform 0.3s ease-in-out;
    /* subtle ease‑in‑out */
}

.btn-custom:hover,
.btn-custom:focus-visible {
    /* works with keyboard focus too */
    transform: translateY(-4px) scale(1.05);
    /* lift up & enlarge slightly */
}


.product-image {
    max-height: 350px;
    object-fit: cover;
}

.price-box {
    border-left: 1px solid #ddd;
    padding-left: 30px;
}

.order-btn {
    background-color: #0b5b58;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.order-btn:hover {
    background-color: #b3c626;
}

/* Section Headers */
.container h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Table Styling */
.table {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table th,
.table td {
    vertical-align: middle;
    font-size: 15px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.table thead th {
    background-color: #0b5b58 !important;
    color: #fff;
    font-size: 17px;
    border-color: #86b5b4;
}

.table-light {
    background-color: #f1f1f1;
    font-weight: 600;
}

/* Contact Card Styling */
.card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card h5 {
    color: #0b5b58;
    font-weight: 600;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-control,
.form-select {
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    transition: 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 0.15rem rgba(244, 67, 54, 0.25);
}

/* Submit Button */
.btn-danger {
    background-color: #0b5b58;
    border: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
}

.btn-danger:hover {
    background-color: #b3c626;
}

/* Mobile Font Resize */
@media (max-width: 768px) {

    .table th,
    .table td {
        font-size: 13px;
    }

    .form-label {
        font-size: 13px;
    }
}

img.header-image {
    width: 100%;
    height: auto;
    border-bottom: 5px solid #004aad;
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    color: #1a1a1a;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    margin-top: 30px;
}

p {
    margin: 10px 0;
}

ul {
    margin-left: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 30px;
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #0b5b58;
    color: white;
}

.highlight-box {
    background-color: #f1f5ff;
    border-left: 5px solid #004aad;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.spec-heading {
    background-color: #e83a65;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    margin-top: 40px;
    border-radius: 5px 5px 0 0;
}

.spec-intro {
    background-color: #e6f2ff;
    border-left: 5px solid #0b5b58;
    padding: 12px 20px;
    margin: 30px 0 15px;
    font-size: 16px;
    color: #003366;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}