
/* Universal font smoothing and appearance fixes for Safari */
body {
    -webkit-font-smoothing: antialiased; /* Smooth fonts in Safari */
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always; /* Ensures font smoothness */
    font-size: 16px; /* Default font size for the body */
    line-height: 1.5; /* Ensures comfortable line height */
    
}

/* Ensure the page scales well */
html {
    font-size: 100%; /* Base font size for rem/em scaling */
}

/******************************** Header ********************************/
.header {
    background-size: cover;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;

    background-color: transparent; /* Default background color */
    transition: background-color 0.3s; /* Smooth transition for background color change */
   
    justify-content: space-between; /* Align items in the header to the ends */
    align-items: right;
    height: 13%; /* Set the header height */    
}

.header.scrolled {
    height: 13%; /* Set the header height */
	background-color: rgba(211, 207, 207, 0.594) !important; /* Light gray with 90% opacity */
    font-weight: bold;
}
.navbar-light .navbar-nav .nav-link {
    color: black;
    padding-left: 5px;
    padding-left: 5px;
}

.navbar-light .nav-item .nav-link.active,
.navbar-light .nav-item:hover .nav-link {
    text-decoration: underline; /* Adds an underline to the text */
    color: var(--bs-danger); /* Uses Bootstrap's "danger" color variable */
    font-weight: bold;
    text-underline-offset: 5px;
}

/* Ensure the navbar items take full width */
.navbar {
    width: 100%;
    padding: 0;
    
}

.navbar-nav {
    width: 100%;
    /* justify-content: center; */
    /* align-items: center; */
    padding-left: 5px;
    padding-right: 10px;
}

/* Adjust margins for proper spacing */
.nav-item {
    margin-left: 5rem;
    justify-content: center;
    align-items: center;
    flex: 1;
    white-space: nowrap; 
}
.menu-close {
    display: none;
}

.content {
	background-size: cover;
	width: 100%;
	padding-top: 7.3%;
  }

.text-content {
	padding: 10px;
  }
/******************************** Main Body ********************************/
.main-body {
    border: 1px solid lightgray;
    /* height: 470px; */
    margin-bottom: 1.5em;
    /* display: flex; */
    /* justify-content: center; Centers horizontally */
    /* align-items: center; Centers vertically */
    padding: 1rem 1rem; /* Adjust padding for better space */
    overflow: hidden;
}
.main-row {
    display: flex;
    align-items: flex-start; /* Ensures children align to the top */
    padding-top: 70px;
    padding-bottom: 70px;
}


/* Ensure the image stays proportional and the container behaves responsively */
.img-main {
    max-height: 500px;
    object-fit: contain; /* Ensures the image stays proportional */
    -webkit-object-fit: contain; /* Safari compatibility for object-fit */
}
.buttonBo {
    margin-top: 13rem;
}

button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    white-space: nowrap; 
}
.buttonM {
    background-color: #dc3545 !important;
    color: white !important;
    font-size: 16px;
  }
  
.buttonM:hover {
    background-color: white !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
  }

  .buttonM1 {
    background-color: white !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
  }
  
.buttonM1:hover {
    
    background-color: #dc3545 !important;
    color: white !important;
    font-size: 16px;
  }
  
.custom-padding1 {
    padding-top: 50px !important; /* Adjust this value to move the button down */
    /* padding-right: 10px; */
}
.custom-padding2 {
    padding-top: 210px !important; /* Adjust this value to move the button down */
    /* padding-right: 10px; */
}

/* Optional: You may want to remove margin for responsive designs */
.col-md-6, .col-md-2 {
    margin-bottom: 0; /* Remove bottom margin to prevent large gaps */
}

/* Counter Styles */
.counter {
    background-color: black;
    color: white;
    padding: 10px;
    margin-top: 10px;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    align-items: center;
}

.counter .digit {
    margin: 0 5px;
    display: inline-block;
    position: relative;
    width: 30px;
    height: 40px;
    perspective: 100px;
    text-align: center;
    line-height: 40px;
    background: #222;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
    font-weight: bold;
}

.digit::before {
    content: attr(data-value);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #444;
    color: white;
    transform: rotateX(-90deg);
    backface-visibility: hidden;
    transition: transform 0.5s ease-in-out, top 0.5s ease-in-out;
    line-height: 40px;
    border-radius: 4px;
}

.digit.flip::before {
    top: 0;
    transform: rotateX(0deg);
}

/* First Column Styles */
.first-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}
/* ************************** Highlights ******************************** */
.cardi {
    background-color: #dc3545;
    color: #ffffff;
    font-size: 20px !important;
    border-radius: .25rem;
}
.cardi h5 {
    font-size: 25px !important;
    color: #ffffff !important;
}

.card-body {
    padding-top: 0.5rem ;
}

.card-title a:hover {
    color: #dc3545 !important ;
}
/* ************************** Recent Updates ******************************** */
.container-fluid {
    width: 90%;
}
.card1 {
    padding: 0.5em;
    /* background-color: #e35d6a; */
    background-color: #fff;
    border-radius: .25rem;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
}

.card-title {
    font-size: 18px;
}
.card-title a { 
    color: #000 !important;
    text-decoration: none;
}
small {
    font-size: 90%;
}
.text-muted { 
    color: #000 !important;
    font-size: 14px;
}
h5 {
    font-weight: bolder !important;
    font-size: 19px !important;
    color: #000 !important;
}
/******************************** Read News ********************************/
.fw-bolder {
    font-weight: bolder !important;
    font-size: 17px;
    color: #dc3545 !important;
}

.img-fluid1 {
    width: 610px;
}

.right-body {
    /* background-color: rgba(248, 246, 246, 0.828); */
    border: 1px solid lightgray;
    margin-bottom: 1.5em;
    border-radius: 5px;
}
button.carousel-control-next, button.carousel-control-prev {
    background-color: white !important;
    color: #000 !important;
}

/******************************** Navbar inside main body ********************************/
.tab-content {
    padding: 1rem 1rem; 
}

.nav-pills .nav-link {
    color: black;
}

.nav-pills .nav-link.active {
    color: #dc3545 !important;
    background-color: #ffffff !important;
    font-weight: bold !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-pills .nav-link1 {
    color: black;
    border: none;
    background-color: #ffffff !important;
}

.nav-pills .nav-link1.active {
    color: #dc3545 !important;
    background-color: #ffffff !important;
    border: none;
    font-weight: bold !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}
/******************************** Cars color swatch ********************************/
/* Styling for active swatch (border and checkmark) */
.card-image {
    width: 100%; /* Ensures the image takes the full width of the card */
    height: auto; /* Maintains the aspect ratio */
    object-fit: cover; /* Ensures the image fills the container, cropping if necessary */
    border-radius: 8px; /* Optional: Adds rounded corners */
}

.card {
    overflow: hidden; /* Ensures no overflow from the image or content */
}
/* Styling for color swatches */
.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    margin: 2px;
    cursor: pointer;
    position: relative;
    border: 1px solid silver; /* Default border */
}

/* Active swatch with a border and checkmark */
.color-swatch.active {
    border: 1px solid black;
    width: 28px;
    height: 28px;
}
.color-swatch:hover {
    opacity: 0.8;
}
.color-swatch.active::after {
    /* content: "✔"; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: white;
}

h5{
    color: #dc3545 !important;
    font-size: 14px;
}
h6{
    padding-left: 20px ;
    color: #dc3545;
    font-size: 17px;
}
/******************************** Each car ********************************/
.custom-tabs {
    display: flex;
    justify-content: flex-start; /* Aligns tabs to the left */
    margin-left: 0; /* Make sure there's no unwanted left margin */
    padding-left: 0; /* Remove padding if present */
}
.custom-tabs .nav-item {
    margin-left: 0 !important;
}

.custom-tabs .nav-link {
    border: 1px !important;
    background: transparent !important;
    color: #555; /* normal text color */
    font-weight: 500;
}

.custom-tabs .nav-link.active {
    color: #007bff !important; /* active tab color */
    background: none !important;
    border: none !important;
    font-weight: 600;
}

/* Card body style */
.sae-card-body {
    border: 1px;
    padding: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image container to control size */
.card-image-container {
    width: 100%;
    max-height: 200px; /* Adjust this value based on your preference */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image is fully visible */
    object-position: center center; /* Ensures it is centered */
}



/* Card title style with border */
.sae-card-title {
    border-top: 1px;
    padding-top: 10px;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
}

/* Optional border line before the model name */
.card-border {
    border: 1px;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

/* Color swatches container */
.color-swatch-container {
    width: 100%;
    text-align: center;
}

[data-scroll-offset] {
    scroll-margin-top: 130px; /* adjust based on header height */
  }

.container-specs {
    font-size: 14px;
}

.container-specs h5 {
    font-size: 16px !important;
}
/******************************** Contact right ********************************/
div.cleft
{
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    /* border: 1px solid #dc3545;; */
}
div.cright
{
    padding-left: 70px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    /* border: 1px solid #dc3545;; */
  }
  /********** ContactForm **********/
.form-control:focus {
    border-color: #000;
    box-shadow: none;
}

label {
    font-weight: 400;
}

.error {
    color: red;
    font-weight: 400;
    display: block;
    padding: 6px 0;
    /* font-size: 14px; */
}

.form-control.error {
    border-color: red;
    padding: .375rem .75rem;
}

.favicon-container {
    display: flex;
    align-items: center;
    /* font-family: Arial, sans-serif; */
  }

  .favicon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #dc3545;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: gray;
    font-size: 25px;
    font-weight: bold;
    margin-right: 10px;
  }

  .text-container {
    line-height: 1.2;
  }

  .text-line {
    margin: 0;
    font-size: 14px;
    color: #333;
  }

/******************************** Footer ********************************/
footer {
    /* background-color: #202124; */
    background-color: rgba(211, 207, 207, 0.594) !important; 
    color: #dc3545;
}

footer .card {
    background-color: #202124; /* Darker card background */
    border: none; /* Removes card border */
    color: #ffffff; /* Text color inside the card */
    padding-top: 10px;
}

.col-md-3 {
    padding-left: 80px;
}

footer ul {
    list-style-type: none; /* Removes bullet points */
    padding: 0; /* Removes padding from the list */
}

footer ul li {
    font-size: 16px; color: #202124;
	list-style: none;
	margin-bottom: 10px; /* Adjust spacing between list items */
	border-bottom: 1px solid #fff; 
	padding-bottom: 5px;
}

footer ul li a {
    color: #202124; /* Ensures links are white */
    text-decoration: none; /* Removes underline from links */
    border-color: aqua;
    
}

footer ul li a:hover {
    color: #000000; /* Ensures links are white */
    text-decoration: none; /* Underlines links on hover */
}

/******************************** Media Queries for Responsiveness ********************************/

/* Adjust navbar and footer for smaller devices */
/* Adjust navbar and footer for smaller devices */
@media (max-width: 768px) {
    /* Adjust content padding for mobile/tablet */
    .content {
        padding-top: 25%; /* Adjust this value based on your header's height */
    }

    /* Body padding adjustments when navbar is open */
    body.navbar-open {/* Adjust based on your header height to ensure content isn't covered */
        padding-bottom: 0; /* No need for extra bottom padding */
    }

    /* Button spacing */
    .buttonBo {
        margin-top: 2rem; /* Provide better spacing for buttons on small devices */
    }

    /* Align navbar items to the left on mobile */
    .navbar-nav {
        justify-content: flex-start;
        padding-left: 10px; /* Align the items better */
    }

    /* Nav item adjustments */
    .nav-item {
        margin-left: 1rem; /* Adjust margin for better spacing */
        white-space: nowrap; /* Prevent text from wrapping */
    }

    /* Main body adjustments for stacking content vertically on small screens */
    .main-body {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        height: auto;
        padding: 2rem; /* Added padding for better spacing */
        padding-top: 30px; /* Extra space on top */
    }

    /* Ensure the image fits well within the container */
    .img-main {
        max-height: 300px;
        width: 100%; /* Makes sure the image is responsive and fits within its container */
    }

    /* Adjust the font size for counters on smaller screens */
    .counter {
        font-size: 1.2rem; /* Make font size smaller for mobile */
    }

    /* Footer padding adjustments */
    .footer .col-md-3 {
        padding-left: 10px; /* Left padding adjustment */
        padding-bottom: 20px; /* Bottom padding for spacing */
    }

    .col-md-6, .col-md-2 {
        padding-left: 10px; /* Left padding adjustment */
        padding-right: 10px; /* Right padding adjustment */
    }

    /* Custom padding for specific elements */
    .custom-padding {
        padding-top: 10px !important; /* Ensure custom padding is maintained */
    }

    /* Reset button styles */
    button {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        white-space: nowrap; /* Prevent buttons from breaking onto a new line */
    }

    /* Optional: Adjust hamburger menu if it gets too large */
    .navbar-toggler {
        font-size: 1.2rem; /* Adjust hamburger size */
        padding: 0.5rem 1rem; /* Adjust padding to make it more clickable */
    }
}

/* Further adjustments for very small screens (mobile-first) */
@media (max-width: 576px) {
    .content {
        padding-top: 25%;
    }

    .buttonBo {
        margin-top: 2rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin-left: 0;
        padding: 0;
        white-space: nowrap;
    }

    .main-body {
        padding: 1rem;
    }

    .img-main {
        max-height: 250px;
    }

    .col-md-6, .col-md-2 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .custom-padding {
        padding-top: 5px !important;
        padding-right: 10px !important;
    }

    .d-flex {
        justify-content: center;
        align-items: center;
    }

    .counter {
        font-size: 1rem;
    }

    .footer .col-md-3 {
        padding-left: 0;
        padding-bottom: 10px;
    }

    footer ul {
        padding-left: 10px;
    }

    footer .row {
        display: flex;
        flex-wrap: wrap;
        padding-left: 15px;
    }

    footer .col-md-3 {
        width: 50%;
        padding-left: 10px;
        padding-bottom: 10px;
    }

    button {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        white-space: nowrap;
    }

    /* ====== Updated faster menu cover style ====== */
    .navbar-collapse.show {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff; /* Solid white, much faster */
        overflow-y: auto;
        padding-top: 20%;
        transition: background 0.3s ease-in-out;
    }

    .navbar-collapse.show .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    /* ====== Close Button Style ====== */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        background: none;
        border: none;
        color: #000;
        z-index: 1100;
        display: none;
    }

    /* Show close button only when menu is open */
    .navbar-collapse.show .menu-close {
        display: block;
        padding-top: 10%;
    }
}
