/********** Template CSS **********/
:root {
    --primary: #DC3545;
    --light: #F8F8F8;
    --dark: #252525;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

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


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #777777;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


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

.custom-nav {
    margin-left: auto;
    padding: 1.5rem 0;
}

.custom-nav > ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav > ul > li {
    margin-right: 30px;
    position: relative;
}

.custom-nav > ul > li > a {
    display: block;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    outline: none;
}

.custom-nav > ul > li .dropdown-toggle {
    display: block;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    outline: none;
}

.custom-nav > ul > li > a:hover,
.custom-nav > ul > li > a.active,
.custom-nav > ul > li.current-menu-item > a,
.custom-nav > ul > li.current-menu-item .dropdown-toggle,
.custom-nav > ul > li.current-menu-ancestor > a,
.custom-nav > ul > li.current-menu-ancestor .dropdown-toggle,
.custom-nav > ul > li .dropdown-toggle:hover {
    color: var(--primary);
}

/* Second-level dropdown menu should be vertical */
.custom-nav .dropdown-menu ul,
.custom-nav .sub-menu {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-nav .dropdown-menu ul li,
.custom-nav .sub-menu li {
    margin: 0;
}

/* Submenu active state (current page in dropdown) */
.custom-nav .dropdown-menu li.current-menu-item a,
.custom-nav .sub-menu li.current-menu-item a,
.custom-nav .dropdown-menu a.active,
.custom-nav .sub-menu a.active {
    color: var(--primary);
    background: var(--light);
}

/* Submenu positioning: directly under parent nav item */
@media (min-width: 992px) {
    .custom-nav > ul > li.menu-item-has-children,
    .custom-nav > ul > li.dropdown {
        position: relative;
    }

    .custom-nav .dropdown-menu,
    .custom-nav .sub-menu {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 240px;
        margin: 0;
        padding: 0.5rem 0;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        z-index: 1050;
        list-style: none;
    }

    .custom-nav .dropdown-menu li,
    .custom-nav .sub-menu li {
        margin: 0;
    }

    .custom-nav .dropdown-menu a,
    .custom-nav .sub-menu a {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--dark);
        text-transform: none;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }

    .custom-nav .dropdown-menu a:hover,
    .custom-nav .sub-menu a:hover {
        color: var(--primary);
        background: var(--light);
    }
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .custom-nav {
        padding: 0;
        width: 100%;
    }

    .custom-nav > ul {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #EEEEEE;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .custom-nav > ul > li {
        margin-right: 0;
        width: 100%;
        border-bottom: 1px solid #EEEEEE;
    }

    .custom-nav > ul > li > a,
    .custom-nav > ul > li .dropdown-toggle {
        padding: 12px 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Mobile: submenu hidden by default, show on arrow click (Bootstrap adds .show to parent .dropdown or to .dropdown-menu) */
    .custom-nav .dropdown .dropdown-menu,
    .custom-nav .dropdown .sub-menu {
        display: none;
    }
    .custom-nav .dropdown.show .dropdown-menu,
    .custom-nav .dropdown.show .sub-menu,
    .custom-nav .dropdown-menu.show,
    .custom-nav .sub-menu.show {
        display: block;
    }

    /* Mobile: dropdown toggle chevron */
    .custom-nav > ul > li .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    .custom-nav > ul > li.dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Mobile submenu: nested block with clear hierarchy */
    .custom-nav .dropdown-menu,
    .custom-nav .sub-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0.25rem 0 0.5rem 0;
        list-style: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.04);
        border-left: 3px solid var(--primary);
        margin-left: 0;
    }

    .custom-nav .dropdown-menu li,
    .custom-nav .sub-menu li {
        margin: 0;
        border: none;
    }

    .custom-nav .dropdown-menu a,
    .custom-nav .sub-menu a {
        display: block;
        padding: 10px 16px 10px 1rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        line-height: 1.4;
        font-size: 0.95rem;
        color: #444;
        text-decoration: none;
        border: none;
    }

    .custom-nav .dropdown-menu a:hover,
    .custom-nav .sub-menu a:hover,
    .custom-nav .dropdown-menu li.current-menu-item a,
    .custom-nav .sub-menu li.current-menu-item a {
        color: var(--primary);
        background: rgba(0, 0, 0, 0.06);
    }
}

@media (min-width: 992px) {
    .navbar .dropdown-menu,
    .navbar .custom-nav .sub-menu {
        display: block;
        visibility: hidden;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: transform .25s ease, visibility .25s, opacity .25s;
        opacity: 0;
    }

    .navbar .dropdown:hover .dropdown-menu,
    .navbar .custom-nav > ul > li.menu-item-has-children:hover .sub-menu {
        transform: rotateX(0deg);
        visibility: visible;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

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


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: #fde9e9;
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}

/* Stats / Facts & Figures – number cards */
.stats-figure-card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.stats-figure-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
}
.stats-figure-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0 !important;
}
.stats-figure-plus {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.stats-figure-label {
    font-size: 1.5rem;
    color: #6c757d !important;
    line-height: 1.4;
    margin-top: 0.5rem;
}
@media (min-width: 992px) {
    .stats-figure-number,
    .stats-figure-plus {
        font-size: 3rem;
    }
}


/*** About & Feature ***/
.feature-section-icon {
    max-width: 64px;
}

.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/* Team member card: top row = left text + right image; bottom = full-width text */
.team-section-row > [class*="col-"] {
    display: flex;
}
.team-member-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease;
}
.team-member-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}
.team-member-card .team-member-top {
    flex: 1 1 auto;
    min-height: 0;
}
.team-member-card .team-member-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
/* Highlighted name & designation */
.team-member-card .team-member-heading {
    padding: 0.5rem 0 0.5rem 1rem;
    margin-bottom: 0.5rem;
    margin-left: -1rem;
    border-left: 4px solid var(--primary);
}
.team-member-card .team-member-heading h3 {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.team-member-card .team-member-heading .fw-bold {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary) !important;
}
.team-member-card .team-member-img {
    flex: 0 0 auto;
    width: 50%;
    max-width: 280px;
    overflow: hidden;
    min-height: 260px;
    align-self: stretch;
}
.team-member-card .team-member-img > div {
    height: 100%;
    min-height: 100%;
    position: relative;
}
.team-member-card .team-member-img img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
/* Social icons over image - show on card hover */
.team-member-card .team-member-img .team-social {
    position: absolute;
    width: 100%;
    bottom: 15px;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.team-member-card:hover .team-member-img .team-social {
    opacity: 1;
}
.team-member-card .team-member-img .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: #fff;
}
.team-member-card .team-member-img .team-social .btn:hover {
    color: #fff;
    background: var(--primary);
}
.team-member-card .team-member-bottom {
    flex: 0 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
    .team-member-card .team-member-img {
        align-self: stretch;
        height: auto;
    }
    .team-member-card .team-member-top {
        align-items: stretch;
    }
}
@media (max-width: 767.98px) {
    .team-member-card .team-member-top {
        flex-direction: column;
    }
    .team-member-card .team-member-img {
        width: 100%;
        max-width: 100%;
        order: -1;
        height: 320px;
        aspect-ratio: auto;
    }
    .team-member-card .team-member-img > div {
        height: 100%;
    }
    .team-member-card .team-member-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

/* Make footer services links look like .btn-link without needing classes */
.footer .footer-menu-list a {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    text-decoration: none;
}

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

.footer .footer-menu-list ul li {
    margin: 0;
}

.footer .footer-menu-list .footer-quick-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.footer .footer-menu-list .footer-quick-links-inline li {
    margin: 0;
}

.footer .btn.btn-link::before,
.footer .footer-menu-list a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover,
.footer .footer-menu-list a:hover {
    color: var(--primary);
    box-shadow: none;
}


/*** Contact form integration (match top form-floating style) ***/
.form-floating .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.wpcf7{
    position: relative !important;
}
.wpcf7-spinner {
    position: absolute !important;
    right: 0 !important;
}

.form-floating .form-input {
    display: block;
    width: 100%;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-floating .form-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: rgba(220, 53, 69, 0.5);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-floating textarea.form-input {
    min-height: 100px;
    padding-top: 1.5rem;
}

/* CF7 floating label behavior similar to Bootstrap .form-floating */
.form-floating label[for^="c_"] {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    font-size: 1rem;
    color: #6c757d;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out, color .1s ease-in-out;
}

.form-floating .form-input::placeholder {
    color: transparent;
    opacity: 0;
}

.form-floating:focus-within label[for^="c_"],
.form-floating.cf7-has-value label[for^="c_"] {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(.15rem);
}

/* Make bottom \"Send Message\" button match the top one */
.wpcf7-submit.btn.w-100.py-3 {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 500;
}

.wpcf7-submit.btn.w-100.py-3:hover {
    color: #fff;
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.footer .form-control {
    border-color: #777777;
}

/* Footer Newsletter column – title, description, form */
.footer-newsletter-col .footer-newsletter-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0;
    margin-top: -0.25rem;
}

/* Footer Newsletter form (Contact Form 7) – single bordered unit, input + button on one row */
.footer-newsletter-form {
    max-width: 100%;
    margin-top: 1.25rem;
}

.footer-newsletter-form .wpcf7-form {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.25);
}

/* Works with and without <p> (theme has wpcf7_autop_or_not = false) */
.footer-newsletter-form .wpcf7-form > p,
.footer-newsletter-form .wpcf7-form > .wpcf7-form-control-wrap {
    margin: 0;
}

/* First child = email (p or span.wpcf7-form-control-wrap) – same row, grows */
.footer-newsletter-form .wpcf7-form > p:first-of-type,
.footer-newsletter-form .wpcf7-form > .wpcf7-form-control-wrap:first-of-type {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* Submit button – same row, fixed width */
.footer-newsletter-form .wpcf7-form > p:last-of-type,
.footer-newsletter-form .wpcf7-form > input.wpcf7-submit {
    flex: 0 0 auto !important;
    width: auto !important;
}

.footer-newsletter-form .wpcf7-form-control-wrap {
    display: block;
    margin: 0;
    height: 100%;
}

.footer-newsletter-form .wpcf7-form .wpcf7-form-control-wrap {
    height: 100%;
}

.footer-newsletter-form .wpcf7-form-control-wrap input[type="email"],
.footer-newsletter-form .wpcf7-form-control-wrap input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #fff;
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition: box-shadow 0.2s ease;
}

.footer-newsletter-form .wpcf7-form-control-wrap input[type="email"]:focus,
.footer-newsletter-form .wpcf7-form-control-wrap input[type="text"]:focus {
    color: #fff;
    background-color: transparent;
    outline: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.footer-newsletter-form .wpcf7-form-control-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* SignUp button – flush right, red, no gap */
.footer-newsletter-form .wpcf7-submit {
    height: 48px;
    padding: 0 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background-color: var(--primary);
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.footer-newsletter-form .wpcf7-submit:hover {
    background-color: #c82333;
    color: #fff;
}

.footer-newsletter-form .wpcf7-submit:active {
    transform: scale(0.98);
}

/* Response and validation messages – full width below input row */
.footer-newsletter-form .wpcf7-response-output {
    flex: 1 1 100%;
    margin: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.15);
}

.footer-newsletter-form .wpcf7-not-valid-tip {
    display: block;
    color: #f8d7da;
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

@media (max-width: 380px) {
    .footer-newsletter-form .wpcf7-form > p:first-of-type,
    .footer-newsletter-form .wpcf7-form > p:last-of-type,
    .footer-newsletter-form .wpcf7-form > .wpcf7-form-control-wrap:first-of-type,
    .footer-newsletter-form .wpcf7-form > input.wpcf7-submit {
        flex: 1 1 100% !important;
    }
    .footer-newsletter-form .wpcf7-form-control-wrap input[type="email"],
    .footer-newsletter-form .wpcf7-form-control-wrap input[type="text"] {
        border-radius: 0;
    }
    .footer-newsletter-form .wpcf7-submit {
        width: 100%;
        border-radius: 0;
    }
}

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

.footer .copyright a {
    color: var(--light);
}

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


/*** Gallery Filter Tabs ***/
.gallery-items .gallery-item {
    transition: opacity 0.3s ease;
    cursor: pointer; /* indicate click to open popup */
}

/* Gallery modal navigation arrows */
.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.gallery-modal-prev {
    left: 10px;
}

.gallery-modal-next {
    right: 10px;
}

/* Gallery modal caption styling */
#galleryModalTitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff !important;
}

#galleryModalCategory {
    font-size: 0.9rem;
    opacity: 0.85;
    color: #fff !important;
}

/* Video play icon overlay */
.gallery-video-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.gallery-overlay {
    background: rgba(0, 0, 0, 0.45);
}

/* Gallery card hover frame effect (match team card look) */
.gallery-item {
    padding: .75rem;
    position: relative;
}

.gallery-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.gallery-item:hover::after {
    height: 100%;
    background: var(--primary);
}

/* Lazy loading styles for gallery images */
.gallery-item img {
    transition: opacity 0.3s ease-in-out;
}

.gallery-item img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Show image immediately when loaded */
.gallery-item img.loaded {
    opacity: 1;
}

.nav-pills .nav-link {
    color: var(--dark);
    background: transparent;
    border: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-pills .nav-link:hover {
    color: var(--primary);
    background: rgba(220, 53, 69, 0.1);
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

.nav-pills.border {
    border-color: var(--primary) !important;
}


/*** Blog ***/
.blog-item {
    transition: .5s;
}

.blog-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.blog-img {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.blog-img img {
    transition: .5s;
    width: 100%;
    height: auto;
    display: block;
}

.blog-item:hover .blog-img img {
    transform: scale(1.1);
}

/* Category badge only - image link stays in flow so container has height */
.blog-item .blog-img a.position-absolute {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.blog-item .blog-img a.d-block {
    display: block;
    line-height: 0;
}

.blog-item .blog-item-title {
    display: block;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item .blog-item-title:hover {
    color: var(--primary);
}

.blog-item p {
    margin-bottom: 1rem;
}

.blog-item a.text-uppercase {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: .3s;
}

.blog-item a.text-uppercase:hover {
    color: var(--dark);
}

/* Pagination */
.pagination .page-link {
    color: var(--dark);
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    color: var(--primary);
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
}

/* Blog Detail */
.blog-detail {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-detail .blog-img img {
    transition: .5s;
}

.blog-detail:hover .blog-img img {
    transform: scale(1.05);
}

.blog-detail h1,
.blog-detail h4 {
    color: var(--dark);
    font-weight: 600;
}

.blog-detail p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-tags .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    transition: all 0.3s;
}

.blog-tags .btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.blog-share .btn-square {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-author {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-author img {
    border: 3px solid var(--primary);
}

.blog-author .blog-author-name {
    display: inline-block;
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-author .blog-author-name:hover {
    color: var(--primary);
}

/* Sidebar */
.bg-light.rounded {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.bg-light.rounded h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bg-light.rounded a {
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
}

.bg-light.rounded a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.bg-light.rounded .h6 {
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
}

.bg-light.rounded .h6:hover {
    color: var(--primary);
}

/* Recent Posts sidebar - title typography */
.recent-post-title {
    display: block;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-title:hover {
    color: var(--primary);
}

.bg-light.rounded small {
    color: #666;
}

/*** Exhibitions ***/
.exhibition-item {
    transition: .5s;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exhibition-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.exhibition-img {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.exhibition-img img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    transition: .5s;
}

.exhibition-item:hover .exhibition-img img {
    transform: scale(1.1);
}

.exhibition-date {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    border-radius: 0 0 0.5rem 0;
}

.exhibition-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.exhibition-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.exhibition-item h3,
.exhibition-item h4 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.exhibition-item p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.exhibition-details {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.exhibition-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.exhibition-details strong {
    color: var(--dark);
    font-weight: 600;
}

.exhibition-details i {
    width: 20px;
}
/*** FAQ ***/
.faq-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-header {
    margin: 0;
    font-weight: inherit;
    line-height: inherit;
}

.faq-accordion .accordion-button {
    background-color: #f8f9fa;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.45;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none;
    text-align: left;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: #fff;
}

.faq-accordion .accordion-button::after {
    filter: brightness(0);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-accordion .accordion-button:hover:not(.collapsed) {
    background-color: var(--primary);
    color: #fff;
}

.faq-accordion .accordion-button:hover.collapsed {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--primary);
}

.faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

/*** Product card (listing) – Windson product ***/
.product-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: var(--light);
}

.product-card-img img {
    width: 100%;
    height: auto;
    min-height: 220px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card .product-card-title {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card .product-card-title:hover {
    color: var(--primary);
}

.product-card .text-uppercase {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.product-card .text-uppercase:hover {
    color: var(--dark);
    letter-spacing: 1px;
}

/*** Product detail – Windson product detail ***/
.product-detail-hero {
    background: var(--light);
}

.product-detail-img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-thumb {
    display: block;
    transition: opacity 0.3s ease;
}

.product-detail-thumb:hover {
    opacity: 0.9;
}

.product-detail-content h1 {
    color: var(--dark);
    font-weight: 600;
}

.product-detail-content .list-unstyled li {
    color: #555;
    line-height: 1.6;
}

/* Product specification table – theme style */
.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
}
.product-spec-table th,
.product-spec-table td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #dee2e6;
}
.product-spec-thead-main th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-spec-thead-sub th {
    background: #444;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-spec-table tbody tr:nth-child(odd) {
    background: #eeeeee;
}
.product-spec-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}
.product-spec-table tbody td {
    color: #333;
    text-align: center;
}
.product-spec-table tbody td:first-child {
    text-align: left;
}
.product-spec-model {
    background: #e0e0e0 !important;
    font-weight: 600;
    color: #222 !important;
}
.product-spec-table tbody tr:hover {
    background: #f0f0f0 !important;
}
.product-spec-table tbody tr:nth-child(odd):hover {
    background: #e8e8e8 !important;
}