/********** Template CSS **********/

:root {
    --bs-primary: #d60000;   /* Main Red */
    --bs-secondary: #ffffff; /* White */
    --bs-white: #ffffff;
    --bs-light: #f8f9fa;
    --bs-dark: #111111;
    --bs-body: #222222;
}


/* Outline buttons (your issue) */
.btn-outline-primary {
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #ffffff !important;
    color: #d60000 !important;
    border-color: #ffffff !important;
}


.text-primary {
    color: #d60000 !important;
}

.bg-primary {
    background-color: #d60000 !important;
}

/*** 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;
}

img.animated.pulse {
    animation-duration: 5s;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-primary {
    background-color: #d60000 !important;
    border-color: #d60000 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #b80000 !important;
    border-color: #b80000 !important;
}

.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;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

/* FULL WIDTH NAVBAR FIX */
.navbar {
    padding: 11px 40px !important;   /* added horizontal spacing */
    height: 85px;
    background: #ffffff;
    display: flex;
    align-items: center;
}

/* NAV LINKS */
.navbar .navbar-nav .nav-link {
    margin-right: 25px;              /* reduced spacing */
    padding: 6px 12px;               /* fixed to prevent hover shift */
    color: #d60000;
    font-weight: 500;
    transition: .3s;
    outline: none;
}

/* REMOVE EXTRA GAP ON LAST ITEM */
.navbar .navbar-nav .nav-link:last-child {
    margin-right: 0;
}

/* HOVER + ACTIVE */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    background: #d60000;
    border-radius: 5px;
}

/* DROPDOWN ICON */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* MOBILE */
@media (max-width: 991.98px) {
    .navbar {
        padding: 11px 20px !important;
    }

    .navbar .navbar-nav {
        padding: 10px 15px;
        background: #d60000;   /* force red */
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        color: #ffffff;
    }

    .navbar .navbar-nav .nav-link:hover,
    .navbar .navbar-nav .nav-link.active {
        background: #ffffff;
        color: #d60000;
    }
}

/* DESKTOP DROPDOWN */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }
}

/*** Hero Header ***/
.hero-header {
    position: relative;
    margin-top: -85px;
    background: url('../img/hero-banner.png') center center no-repeat;
    background-size: contain;
    background-color: #ffffff;
}



/* =========================
   FEATURE SECTION (FINAL FIXED)
   ========================= */

/* GRID LAYOUT */
.feature-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px 1fr; /* left | center | right */
    gap: 60px;
    align-items: start; /* prevent stretching */
}

/* LEFT & RIGHT CONTAINERS */
.feature-left,
.feature-right {
    max-width: 420px;
}

.feature-left {
    justify-self: end;
}

.feature-right {
    justify-self: start;
}

/* CENTER IMAGE */
.feature-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-center img {
    width: 280px;
    height: auto;
    display: block;
    margin-top: 40px;
}

/* FEATURE ITEMS */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

/* ICON */
.icon-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: #c00000;
    color: #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}

/* TEXT */
.feature-item h5 {
    margin: 0;
    font-weight: 600;
}

.feature-item p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #333;
}

/* REMOVE OLD STYLES */
.feature-item::before {
    display: none;
}

.feature-item .border {
    border: none !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 992px) {
    .feature-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-left,
    .feature-right {
        max-width: 100%;
        justify-self: center;
    }

    .feature-item {
        justify-content: center;
    }

    .feature-center img {
        width: 220px;
    }
}



/*** Deal ***/
.deal {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
    background-color: #fff5f5;
    background-blend-mode: overlay;
}

.deal::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(214, 0, 0, 0.15);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.deal .bg-white {
    position: relative;
    z-index: 1;
}

.deal .cdt span {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 200;
    text-transform: capitalize;
}


/*** How To Use ***/
.how-to-use {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
    background-color: #fff5f5;
    background-blend-mode: overlay;
}

.how-to-use::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(214, 0, 0, 0.08);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.how-to-use .container {
    position: relative;
    z-index: 1;
}

.how-to-use .border {
    border-color: rgba(214, 0, 0, 0.15) !important;
}


/*** Product ***/
.product-item {
    transition: .1s;
}

.product-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(214, 0, 0, 0.25);
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
    background-color: #fff5f5;
    background-blend-mode: overlay;
}

.testimonial::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(214, 0, 0, 0.15);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.testimonial .testimonial-carousel {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
    border-color: rgba(214, 0, 0, 0.15) !important;
    margin: 0 auto 20px auto;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(214, 0, 0, 0.15);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: #d60000;
}


/*** Blog ***/
.blog-item {
    transition: .1s;
}

.blog-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(214, 0, 0, 0.25);
}

.blog-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Contact ***/
.contact-info-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(214, 0, 0, 0.08);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.contact-info-item .border {
    position: relative;
    border-color: rgba(214, 0, 0, 0.15) !important;
    z-index: 1;
}


/*** Newsletter ***/
.newsletter {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
    background-color: #fff5f5;
    background-blend-mode: overlay;
}

.newsletter::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(214, 0, 0, 0.08);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    background: rgba(214, 0, 0, 0.05);
    border: 1px solid rgba(214, 0, 0, 0.2);
}


/* FOOTER FIX FOR WHITE BACKGROUND */
.footer {
    background: #ffffff;
    color: #222222;
}

.footer a {
    color: #d60000;
}

.footer a:hover {
    color: #a80000;
}

/* Footer headings */
.footer h1,
.footer h5 {
    color: #111111;
}

/* Footer paragraph text */
.footer p,
.footer span {
    color: #555555;
}

/* Footer icons */
.footer i {
    color: #d60000;
}

/* Social buttons */
.footer .btn-outline-primary {
    color: #d60000 !important;
    border-color: #d60000 !important;
}

.footer .btn-outline-primary:hover {
    background: #d60000 !important;
    color: #ffffff !important;
}


/* PRODUCT SECTION BUTTON FIX */
.product-item .btn-outline-primary {
    color: #d60000 !important;
    border: 2px solid #d60000 !important;
    background-color: transparent !important;
}

/* HOVER STATE */
.product-item .btn-outline-primary:hover {
    color: #ffffff !important;
    background-color: #d60000 !important;
    border-color: #d60000 !important;
}


/* NEWSLETTER INPUT BORDER FIX */
.newsletter .form-control {
    border: 2px solid #ffffff !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Placeholder color */
.newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Focus state */
.newsletter .form-control:focus {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    background-color: transparent !important;
    color: #ffffff !important;
}


/* HERO BUTTON STYLE */
.hero-header .hero-btn {
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    background: transparent !important;
}

/* HOVER */
.hero-header .hero-btn:hover {
    background: #ffffff !important;
    color: #d60000 !important;
    border-color: #ffffff !important;
}



#cdt-days,
#cdt-hours,
#cdt-minutes,
#cdt-seconds {
    color: #d60000 !important;
}


.spinner-grow {
    background-color: #d60000 !important;
}


/* BLOG TITLE FIX */
.blog-item a.h5 {
    color: #d60000 !important;
}

/* HOVER */
.blog-item a.h5:hover {
    color: #a80000 !important;
}


/* Fix Blog Text */
.blog-item a.h5 {
    color: #d60000 !important;
}

.blog-item a.h5:hover {
    color: #a80000 !important;
}


/* Icon Color Logic */

.bg-primary i,
.feature-item i {
    color: #ffffff !important;
}

.container i,
.product-item i,
.blog-item i {
    color: #d60000;
}

.text-secondary {
    color: #555555 !important;
}


.bg-primary,
.bg-primary * {
    color: #ffffff !important;
}


.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary a {
    color: #ffffff !important;
}

.justify-text {
    text-align: justify;
}


/* CAROUSEL SECTION */

/* SECTION */
.carousel-section {
    margin-top: 40px;
}

/* CONTAINER (fixed width) */
.carousel-wrapper {
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* TRACK */
.carousel-track {
    display: flex;
    width: calc(250px * 8); /* 8 images */
    animation: scroll 20s linear infinite;
}

/* IMAGES */
.carousel-track img {
    width: 250px;  /* fixed size */
    height: 250px; /* square */
    object-fit: cover;
    flex-shrink: 0;
}

/* ANIMATION */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1000px); /* 4 images width */
    }
}


/* default */
.navbar .nav-link {
    color: #d60000 !important;
}

/* hover */
.navbar .nav-link:hover {
    color: #ffffff !important;
    background: #d60000;
}

/* ACTIVE (force override) */
.navbar .nav-link.active {
    color: #ffffff !important;
    background: #d60000;
}


.footer {
    color: #d60000;
}

.footer-link {
    color: #d60000;
    text-decoration: none;
    border-bottom: 1px solid #d60000;
}

.footer-link:hover {
    color: #a80000;
    border-bottom: 1px solid #a80000;
}


/* CONTACT FORM STYLING */

.contact-section {
    background: #ffffff;
    padding: 60px 0;
}

.contact-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.contact-container h2 {
    margin-bottom: 30px;
    font-weight: 600;
    color: #d60000;
}

/* ROW */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    flex-direction: column;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #d60000;
    background: #ffffff;
    color: #000;
    font-size: 14px;
    outline: none;
}

/* PLACEHOLDER */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

/* FOCUS */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #a80000;
}

/* TEXTAREA */
.contact-form textarea {
    height: 150px;
    resize: none;
}

/* BUTTON */
.submit-btn {
    margin-top: 20px;
    background: #d60000;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 16px;
}

/* HOVER */
.submit-btn:hover {
    background: #a80000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}