html {
    font-family: Helvetica, sans-serif;
    letter-spacing: 1px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%; /* Ensure body takes up full width */
    overflow-x: hidden; /* Prevent horizontal overflow on body */
}

.mobile-header{
    display: none;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0.98;
    border-right: 2px solid #990a0a; /* Dark red border on the right */
    
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
    position: relative;
}

.sidebar-links li {
    margin: 25px 0;
    position: relative;
}

.sidebar-links a {
    color: #990a0a;
    text-decoration: none;
    font-weight: bold;
    display: block;
    position: relative;
    overflow: hidden;
}

.sidebar-links li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 160%;
    background: linear-gradient(to right, #e2e2e2 100%, rgba(234, 227, 224, 0));
    transform: translateY(-50%);
    transition: width 0.1s ease;
    z-index: -1;
}

.sidebar-links li:hover::before {
    width: 115%;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.button-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: visible; /* Change this to visible */
}


.circle-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.button-link span {
    color: #990a0a;
    font-weight: bold;
    position: relative;
    z-index: 1;
    margin-left: 7px;
}


.circle-button:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.circle-button img {
    position: relative;
    z-index: 1;
}

.button-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -250px; 
    width: 0;
    height: 160%; /* Increase this value to make it taller */
    background: linear-gradient(to right, #e2e2e2 100%, rgba(234, 227, 224, 0));
    transition: width 0.1s ease;
    z-index: -1;
    transform: translateY(-50%); /* Center the pseudo-element vertically */
}

.button-link:hover::before {
    width: calc(100% + 275px);
}


main {
    margin-left: 250px; /* Leave space for the sidebar */
    position: relative; /* Required for absolute positioning of children */
    height: 100vh; /* Ensures the main content takes full height */
    display: flex; /* Use flexbox to position items */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center child elements horizontally */
}


.main-content {
    position: relative;
    width: 100%;
    height: auto; /* Allow height to adjust based on content */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center content horizontally */
}

.center-logo {
    position: relative;  /* Keep it as relative */
    top: 30px;          /* Adjust this value as needed */
    max-width: 700px;  /* Adjust the max size for the logo */
    width: 700px;        /* Maintain original aspect ratio */
    height: auto;       /* Maintain original aspect ratio */
    z-index: 1;         /* Keep it above the background */
    margin-left: auto;  /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    margin-top: 60px;
}


.background-image {
    position: fixed;
    top: -50px;
    left: 0;
    width: 110vw;
    height: 110vh;
    z-index: -1;
    background-image: url('marbleBackground.jpg');
    background-size: 100%;
    background-position: center;
    transition: transform 0.1s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0); /* White overlay with 50% opacity */
    z-index: 1;
}

.mobile-selectors{
    display: none;
}







/*   ---------- ---------- ---------- FAQ ---------- ---------- ---------- */







.main-container-faq {
    color: #990a0a; /* Set text color to red for all text within this container */
}

/* Ensure that links remain clearly styled within this container */
.main-container-faq a {
    color: #990a0a; /* Ensures that links within the main container are also red */
    text-decoration: none; /* Adjusts the default link style */
}

mark {
    font-weight: bold; /* Make text bold */
    color: inherit; /* Ensure the color matches the parent element's color */
    background-color: transparent;
    
}

.banner {
    background-image: url('marbleBanner.png'); /* Replace with your image URL */
    background-size: cover; /* Make sure the image covers the area */
    background-position: center; /* Center the background image */
    padding: 20px; /* Add some padding for spacing */
    border-radius: 2px; /* Optional: rounded corners for the banner */
    color: #990a0a; /* Dark red color for the text */
    text-align: center; /* Center the text */
    margin-bottom: 20px; /* Space between the banner and other sections */
    width: 100%;
    box-sizing: border-box;
}

.banner h1 {
    font-size: 2em; /* Adjust font size as needed */
    margin: 0; /* Remove default margin */
}

.info-section, .faq-section {
    max-width: 1200px; /* Set max width to keep section content centered and not too wide */
    width: 100%; /* Allow section to take full width up to max-width */
    margin-left: 50px; /* Offset for sidebar, this ensures they line up with the main content */
    padding: 20px; /* Add padding for better spacing around the content */
    box-sizing: border-box; /* Include padding in total width */
}

h2 {
    color: #990a0a; /* Same color for section headings for consistency */
    border-bottom: 2px solid #990a0a; /* Underline style to differentiate section headings */
    padding-bottom: 5px; /* Space below the heading */
    padding-left: 10px;
}

.box-text{
    padding: 10px;
    margin: 0px;
}

.info-item, .faq-item {
    margin-bottom: 20px;    /* Space between items */
    border: 1px solid #ececec; /* Light border for distinction */
    border-radius: 5px;     /* Rounded corners */
    padding: 0;             /* Inner spacing */
    background-color: #f9f9f9; /* Light background for readability */
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;  /* Include padding in the width */
}

.info-title, .faq-title {
    cursor: pointer; /* Indicate that it's clickable */
    font-size: 1.2em; /* Slightly larger font for titles */
    color: #990a0a; /* Consistent color as sidebar links */
    margin: 0; /* Remove default margins */
    border: 1px solid #990a0a; 
    border-radius: 5px; 
    padding: 10px; /* Inner spacing */
}

.info-title:hover, .faq-title:hover {
    background-color: #e2e2e2; /* Light hover effect */
}

.info-content, .faq-content {
    margin-top: 10px;         /* Space above content */
    display: flex;            /* Use flexbox */
    flex-direction: column;   /* Stack child elements vertically */
    align-items: center;      /* Center items horizontally */
    display: none;            /* Ensure content is hidden initially */
    }

    .material-item {
        margin-bottom: 10px;         /* Space between material items */
        border: 1px solid #e0e0e0; /* Light border for distinction */
        border-radius: 5px;      /* Rounded corners */
        background-color: #f9f9f9; /* Light background for readability */
        width: 98%;               /* Set width to 90% to give some space on both sides */
        margin-left: auto;       /* Center horizontally */
        margin-right: auto;      /* Center horizontally */
        box-sizing: border-box;   /* Include padding in the box width */
    }
    
    .material-title {
        cursor: pointer; /* Indicate that it's clickable */
        font-size: 1.2em; /* Slightly larger font for titles */
        color: #990a0a; /* Consistent color as sidebar links */
        margin: 0; /* Remove default margins */
        border: 2px solid #990a0a; 
        border-radius: 5px; 
        padding: 10px; /* Inner spacing */
    }
    
    .material-title:hover {
        background-color: #e2e2e2; /* Light hover effect for material titles */
    }

    .materialType p {
        font-weight: bold;               /* Make the text bold to look like a title */
        font-size: 1.2em;                /* Slightly increase the font size */
        text-align: left;              /* Center align the text */
        position: relative;              /* Allow positioning the border as a pseudo-element */
        padding-bottom: 10px;            /* Add spacing below the text */
        margin-bottom: 20px;             /* Space below the border for separation */
        padding-left: 15px;
    }
    
    
    .material-content {
        margin-top: 10px; /* Space above content */
        display: none; /* Ensure content is hidden initially */
    }

    .materialType {
        margin-bottom: 10px;         /* Space between material items */
        border: 2px solid #990a0a; /* Light border for distinction */
        border-radius: 5px;      /* Rounded corners */
        background-color: #f9f9f9; /* Light background for readability */
        width: 98%;               /* Set width to 90% to give some space on both sides */
        margin-left: auto;       /* Center horizontally */
        margin-right: auto;      /* Center horizontally */
        box-sizing: border-box;   /* Include padding in the box width */
    }
    
    .sampleRow {
        display: flex; /* Use flexbox to align images in a row */
        gap: 10px; /* Space between images */
        margin: 10px 0; /* Space above and below the images */
        padding-left: 15px;
    }

    .whiteQuartzImg {
        border: 1px solid #990a0a;
    }
    
    .description {
        margin-top: 10px; /* Space above description text */
        padding: 15px;
    }

    .image-container {
        display: flex;                 /* Use flexbox to align images side-by-side */
        justify-content: center;       /* Center the images horizontally */
        gap: 20px;                     /* Add space between the images */
        margin-top: 10px;              /* Add some margin to create space above */
    }
    
    .image-item {
        width: 45%;                    /* Each image takes up about half of the available width */
        height: auto;                  /* Maintain the aspect ratio of the images */
        border-radius: 5px;            /* Optional: Add rounded corners */
        border: 1px solid #990a0a;     /* Add a border to match the overall theme */
        margin-bottom: 10px;
    }

    ul {
       margin: 0px; 
    }

    ol li{
        margin-bottom: 15px; /* Adjust value to set the desired spacing */
    }

    .faq-image {
        display: block; /* Ensure the image is on a new line */
        margin: 20px auto; /* Center the image and add spacing above and below */
        max-width: 60%; /* Responsive size: adjust to fit within the container */
        height: auto; /* Maintain the aspect ratio */
    }






/*   ---------- ---------- ---------- REPAIRS ---------- ---------- ---------- */







.paragraph-box {
    max-width: 1200px; /* Control the width of the box */
    width: 90%; /* Make it responsive */
    margin: 20px; /* Set equal margin on all sides */
    padding-left: 40px; /* Add padding for better readability */
    padding-right: 40px; /* Add padding for better readability */
    background-color: #f9f9f9; /* Light background for readability */
    border-radius: 5px; /* Optional: add rounded corners */
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1em; /* Control the size of the text */
    line-height: 1.5em;
    text-align: justify; /* Align text to justify on both the left and right */
    border: 2px dotted #990a0a; /* Add a dotted border in red */
}


/* Styling for the quick navigation label */
.dropdown-wrapper label {
    color: #990a0a; /* Set text color to red */
    font-weight: bold; /* Make text bold */
}

.dropdown-wrapper {
    width: 90%;
    margin: 20px auto;
    text-align: center;
    position: relative; /* For arrow positioning */
}

/* Styling for the dropdown container */
.styled-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px; /* Limit max-width to control its appearance */
}

/* Custom styling for the select element */
.styled-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 7px 10px;
    font-size: 1em;
    color: #990a0a; /* Matching theme color */
    border: 2px solid #990a0a;
    border-radius: 5px;
    background-color: #ffffff; /* White background for readability */
    cursor: pointer;
}

/* Add custom arrow using pseudo-element */
.styled-select::after {
    content: '▼'; /* Unicode character for down arrow */
    position: absolute;
    right: 10px; /* Position to the right of the select element */
    top: 50%;
    transform: translateY(-50%);
    color: #990a0a; /* Matching color to maintain consistency */
    pointer-events: none; /* Prevent interaction with the arrow */
}

/* Styling for focus and hover states */
.styled-select select:hover {
    background-color: #f9f9f9;
}

.styled-select select:focus {
    border-color: #990a0a; /* Keep the border red */
    outline: none; /* Remove default browser outline */
}

.cards-container {
    display: flex;
    flex-direction: column;  /* Stack the cards vertically */
    gap: 20px;
    align-items: center;  /* Center cards horizontally */
    width: 100%;
    margin-bottom: 30px;
}

.card {
    width: 80%;  /* Make the card take up 90% of the main container */
    padding: 20px;
    border: 1px solid #990a0a;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.card h3 {
    color: #990a0a;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 0px;
    padding-bottom: 10px;
    border-bottom: 3px solid #990a0a;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.card p {
    color: #990a0a; /* Set text color to red */
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: left;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5em;
}

.repair-card {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative; /* Positioning context for carousel buttons */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.bottom-spacer {
    height: 80px; /* Adjust the height value as needed */
    width: 100%;
    display: block;
    background-color: #ffffff;
    border-bottom: 1px solid #ffffff;
}



.carousel-container {
    position: relative; /* Relative to .repair-card */
    max-width: 100%;
    display: flex;
    align-items: center; /* Vertically center buttons and images */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Add gap between images */
}

.carousel-slide {
    display: flex;
    align-items: center; /* Vertically center the images */
    justify-content: center; /* Center images horizontally */
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none; /* Initially hidden, only the active item will be visible */
    width: 100%;
    justify-content: space-around;
    gap: 30px;
}

.carousel-item.active {
    display: flex; /* Show only the active slide */
}

.carousel-image {
    width: 49%;
    height: auto;
    border-radius: 3px;
}
.carousel-button {
    background-color: #990a0a;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 2em;
    border-radius: 10%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    line-height: 1; /* Add this line */
  }

.prev-button {
    left: -25px; /* Positioned at the very left of the card, adjust as needed */
}

.next-button {
    right: -25px; /* Positioned at the very right of the card, adjust as needed */
}

.carousel-button:hover {
    background-color: #e2e2e2;
    color: #990a0a;
    border: 2px solid #990a0a;
    border-radius: 5px;
}






/*   ---------- ---------- ---------- Countertops ---------- ---------- ---------- */






.main-container-counters {
    margin-left: 250px; /* Leave space for the sidebar */
    position: relative; /* Required for absolute positioning of children */
    height: 100vh; /* Ensures the main content takes full height */
    display: flex; /* Use flexbox to position items */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center child elements horizontally */

}




.seams-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    padding-bottom: 0px;
    border: 1px solid #e0e0e0; /* Keep the same border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Keep rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: row; /* Layout children in a row */
}


.seams-text {
    width: 30%; /* Take up 30% of the card width */
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.seams-images {
    width: 70%; /* Take up 70% of the card width */
}

.image-row {
    display: flex; /* Use flexbox for image row */
    justify-content: space-between; /* Space images evenly */
    margin-bottom: 10px; /* Space between rows */
}

.seams-image {
    width: calc(50% - 5px); /* Each image takes approximately half of the row width */
    border-radius: 5px; /* Optional: Add rounded corners */
    padding-bottom: 10px;
    border-radius: 0px; /* Optional: Add rounded corners */
}

.counter-title {
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1.5em; /* Adjust to match the heading size */
    margin-bottom: 10px; /* Space below the heading */
    border-bottom: #990a0a solid 2px;
}

.counter-description {
    max-width: 1200px; /* Control the width of the description */
    background-color: #f9f9f9; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1em; /* Control the size of the text */
    line-height: 1.2em; /* Line height for readability */
    text-align: justify; /* Align text to justify on both sides */
}

.fitting-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    border: 1px solid #e0e0e0; /* Border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: row; /* Layout children in a row */
}

.fitting-text {
    width: 30%; 
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.fitting-images {
    width: 70%; 
}

.image-row {
    display: flex; /* Use flexbox for image row */
    justify-content: space-between; /* Space images evenly */
    margin-top: auto;
    margin-bottom: auto;
}

.fitting-img {
    width: 48%; /* Each image takes up about half of the row width */
    border-radius: 0px; /* Optional: Add rounded corners */
}

.edgework-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    border: 1px solid #e0e0e0; /* Border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: row; /* Layout children in a row */
}

.edgework-text {
    width: 50%; /* Take up 50% of the card width */
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.edgework-img {
    width: 80%; /* Each image takes up about half of the row width */
    border-radius: 0px; /* Optional: Add rounded corners */
    margin-left: auto;
    margin-right: auto;
}

.edgework-images {
    width: 50%; 
}

.buying-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 20px auto; /* Center card */
    margin-bottom: 10px;
    padding: 10px;
    padding-bottom: 0px;
    border: 1px solid #e0e0e0; /* Keep the same border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Keep rounded corners */
}

.buying-title {
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1.5em; /* Adjust to match the heading size */
    margin-bottom: 10px; /* Space below the heading */
    text-align: center;  /* Center the title */
}

.buying-images {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack rows vertically */
}

.process-image-row {
    display: flex; /* Use flexbox for row layout */
    justify-content: space-between; /* Space between items */
    margin-bottom: 10px; /* Space between rows */
}

.process-item {
    width: 48%; /* Each item takes up approximately half of the row width */
    text-align: center; /* Center text */
    border: 1px solid #e0e0e0; /* Border color */
    border-radius: 5px; /* Keep rounded corners */
    background-color: #ffffff;
}

.process-subtitle {
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1em; /* Control the size of the text */
    line-height: 1.2em; /* Line height for readability */
    text-align: justify; /* Align text to justify on both sides */
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.buying-img {
    width: 95%; /* Ensure image takes full width */
    border-radius: 0px; /* Optional: Add rounded corners */
    padding-bottom: 10px;
}

.portfolio-section {
    width: 90%;
    margin: 30px auto;
    text-align: center;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    position: relative;
    width: 30%; /* Adjust percentage based on screen size */
    margin: 10px;
    overflow: hidden;
    cursor: pointer; /* Indicate interactivity */
}

.portfolio-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease; /* Add hover effect */
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1); /* Zoom effect on hover */
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    text-align: center;
    padding: 10px 0;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Fade effect */
}

.portfolio-item:hover .overlay-text {
    opacity: 1; /* Show text on hover */
}

/* Modal styles */

#caption {
    text-align: center; /* Center the caption text */
    color: #990a0a; /* Change caption text color to red */
    margin-top: 30px; /* Add some space above the caption */
    font-weight: bold;
}


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Prevent scrolling */
    background-color: rgba(255, 255, 255, 0.95); /* Black background with opacity */
}

.modal-content {
    margin: auto; /* Adjust the left and right margins as needed */
    margin-top: 100px;
    display: block;
    width: calc(100% - 40px); /* Adjust width to account for margins */
    max-width: 800px; /* You can also limit the maximum width */
    height: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #990a0a;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}






/*   ---------- ---------- ---------- Stoneguard ---------- ---------- ---------- */






.sg-cards-container {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Distribute space evenly */
    width: 90%; /* Set the width for the card container */
    margin: 20px auto; /* Center the container */
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    line-height: 1.5em;
}

.sg-card {
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #e0e0e0; /* Border color */
    border-radius: 5px; /* Rounded corners */
    width: 30%; /* Set a fixed width for each card */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Center text */
}

.sg-card-image {
    width: 100%; /* Ensure image takes full width of the card */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners for the image */
}

.sg-text{
    text-align: justify;
    padding-left: 20px;
    padding-right: 20px;
}





/*   ---------- ---------- ---------- Commercial ---------- ---------- ---------- */






.badge-card {
    max-width: 1200px; /* Control the width of the card */
    width: 90%; /* Make it responsive */
    margin: 20px; /* Set equal margin on all sides */
    background-color: #ffffff; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    padding: 20px; /* Padding for spacing */
    text-align: center; /* Center text within the card */
    border: 1px solid #e0e0e0; /* Border color */
}

.badge-container {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center badges in the container */
    gap: 20px; /* Space between badges */
}

.badge {
    width: 80px; /* Set a fixed width for badges */
    height: 80px; /* Set a fixed height for badges */
    border-radius: 0px; /* Rounded corners for badges */
    overflow: hidden; /* Hide overflow to maintain shape */
    transition: transform 0.3s; /* Smooth transition for hover effect */
}

.badge img {
    width: 100%; /* Make the image fill the badge */
    height: auto; /* Maintain aspect ratio of the image */
}






/*   ---------- ---------- ---------- Contact ---------- ---------- ---------- */






.title-card {
    width: 40%; /* Make it responsive */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Center the text */
    position: relative; /* Position for potential absolute elements if needed */
    top: 40px; /* Adjust this value to overlap with the top of the map-card, customization may be needed depending on your layout */
    border: 2px solid #990a0a; /* Set initial border color */
}

.title-card h2 {
    color: #990a0a; /* The same color as the theme */
    margin: 0; /* Remove default margin */
    border: none;
}


.map-card {
    max-width: 1200px; /* Control the width of the entire card */
    width: 90%; /* Make it responsive */
    margin: 20px; /* Set equal margin on all sides */
    margin-top: 0px;
    background-color: #f9f9f9; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    padding: 20px; /* Padding for spacing */
    text-align: center; /* Center content within the card */
}

.map-image {
    width: 100%; /* Make the map image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners for the image */
    margin-bottom: 5px; /* Space below the image */
}

.contact-cards-container {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: space-around; /* Space cards evenly */
    gap: 20px; /* Add space between cards */
}

.contact-card {
    width: 450px;
    border: 1px solid #e0e0e0; /* Set initial border color */
    border-radius: 5px; /* Ensure the border radius is applied */
    overflow: hidden; /* Prevent overflow of the image on zoom */
    transition: border-color 0.3s ease; /* Smooth transition for border color */
    position: relative; /* Positioning context for hover effect */
    text-decoration: none;
    border-width: 2px;
}

.contact-card:hover {
    border-color: #990a0a; /* Change the border to red on hover */
    border-width: 2px;
    background-color: #ffffff;
}

.contact-card img {
    transition: transform 0.3s ease; /* Smooth transition for zoom effect */
    width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}

.contact-card:hover img {
    transform: scale(1.1); /* Zoom in effect */
}

.contact-image {
    width: 100%; /* Make the image fill the card width */
    height: auto; /* Maintain aspect ratio of the image */
    border-radius: 5px 5px 0px 0px; /* Rounded corners */
    margin-bottom: 20px; /* Space below the image */
}

.contact-info h3 {
    color: #990a0a; /* Set text color for contact name */
    margin: 0; /* Remove default margin */
}

.contact-info p {
    margin: 10px 0; /* Space between contact info lines */
    color: #990a0a; /* Set color for contact info */
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
}


.social-cards-container {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping for multiple rows */
    justify-content: space-between; /* Space cards evenly */
    width: 90%; /* Make it responsive */
    max-width: 1200px; /* Set a max width for the container */
    margin: 20px auto; /* Center the container */
}

.social-card {
    display: flex; /* Maintain flex layout */
    flex-direction: column; /* Stack items vertically */
    width: 30%; /* Each card takes up about one-third of the row */
    background-color: #ffffff; /* White background for cards */
    border: 2px solid #e0e0e0; /* Light border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Left-align text inside cards */
    margin-bottom: 20px; /* Space below each card */
    text-decoration: none;
}



.social-card:hover {
    border: 2px solid #990a0a; /* Light border */
    background-color: #e0e0e0; /* White background for cards */
}


.social-header {
        display: flex; /* Use flexbox for alignment */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        margin-bottom: 10px; /* Space below header */
        color: #990a0a;
}

.social-icon {
    width: 30px; /* Adjust icon size as needed */
    height: 30px; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between icon and the title */
}

.social-card h3 {
    margin-top: 20px; /* Remove default margin */
}

.social-card p {
    margin: 5px 0 0 0; /* Space above the paragraph */
    color: #990a0a; /* Set color for contact info */
}

.social-card a {
    text-decoration: none; /* Remove underline from links inside social cards */
}







/*   ---------- ---------- ---------- XXXXXXXXXX ---------- ---------- ---------- */
/*   ---------- ---------- ---------- Cell Phone ---------- ---------- ---------- */
/*   ---------- ---------- ---------- XXXXXXXXXX ---------- ---------- ---------- */




/*   ---------- ---------- ---------- Header ---------- ---------- ---------- */

@media only screen and (max-width: 768px) {


    .sidebar {
        display: none; /* Optionally hide the sidebar to avoid clutter */
    }

    .mobile-header {
        display: flex; /* Use flexbox to layout items in a row */
        position: fixed;
        align-items: center; /* Center items vertically */
        flex-direction: row; /* Keep items in a row */
        background-color: #ffffff;
        padding: 7px;
        height: auto;
        width: 100%;
        z-index: 10;
        box-sizing: border-box;
        border-bottom: 2px solid #990a0a; 
  
    }
    

    .hamburger {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content */
        width: 40px; /* Change width to adjust menu size */
        height: 30px; /* Change height to adjust menu size */
        margin-right: auto; /* Pushes the hamburger menu to the left */
    }
    
    .bar {
        height: 5px; /* Thickness of the bars */
        width: 100%; /* Use full width of the hamburger */
        background-color: #990a0a; /* Color of the bars */
        margin: 3px 0; /* Space between bars */
        transition: all 0.3s ease; /* Smooth transition effect */
    }
    
    /* Open state */
    .hamburger.open .bar1 {
        transform: rotate(45deg) translate(7px, 7px); /* Adjust translation for symmetry */
    }
    
    .hamburger.open .bar2 {
        opacity: 0; /* Hide the middle bar */
    }
    
    .hamburger.open .bar3 {
        transform: rotate(-45deg) translate(7px, -7px); /* Adjust translation for symmetry */
    }

    .button-container {
        display: flex; /* Align buttons in a row */
        align-items: center; /* Center vertically */
        margin-left: auto; /* Push the buttons to the right */
    }
    
    .round-button {
        width: 40px; /* Adjust size as needed */
        height: 40px; /* Adjust size as needed */
        margin-left: 10px; /* Space between the buttons */
        cursor: pointer; /* Change cursor on hover */
    }

    .button-container {
        display: flex; /* Align buttons in a row */
        align-items: center; /* Center vertically */
        margin-left: 10px; /* Space between hamburger and buttons */
    }

.round-button {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    border-radius: 50%; /* Makes the image round */
    margin-left: 10px; /* Space between the buttons */
    cursor: pointer; /* Change cursor on hover */
}

    .header-links {
        display: none; /* Keep it hidden by default */
        list-style: none;
        padding: 0; /* Remove default padding */
        margin: 0; /* Remove default margin */
        background-color: #ffffff; /* Background color */
        width: 100%; /* Ensure the dropdown takes the full width */
        position: absolute;
        top: 100%; /* Places the dropdown directly below the header */
        left: 0; /* Aligns it to the left */
        z-index: 4; /* Higher z-index so it appears on top */
        border-bottom: 2px solid #990a0a; 
    }

    .header-links {
        display: none; /* Ensure it's hidden by default */
    }
    
    .header-links.show {
        display: block; /* Show it when the class is added */
    }


    .header-links a{
        text-decoration: none;
        color: #990a0a;
        font-weight: bold;
    }
    
    
    .header-links li {
        margin: 10px; /* Space between links */
        padding: 10px;
        border: 1px solid #990a0a; /* Border color */
    }

    .button-row {
        display: flex; /* Use flexbox for horizontal layout */
        justify-content: space-around; /* Space buttons evenly in the row */
        margin-top: 15px; /* Adds a bit of space above the button row */
        margin-bottom: 15px;
    }
    
    .circle-button {
        display: flex; /* Align items in the button */
        justify-content: center; 
        align-items: center; 
        width: 40px; /* Set the width of the buttons */
        height: 40px; /* Set the height of the buttons */
    }

    .circle-button img {
        width: 100%; /* Make the image fill the button */
        height: auto; /* Maintain aspect ratio */
    }
    
/*   ---------- ---------- ---------- Main Page ---------- ---------- ---------- */

.main-container {
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack vertically */
    max-width: 100%; /* Ensure full width */
    width: 100%; /* Full width of the screen */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: auto;
}

.main{
    height: 500px;
    margin: 0px;
}

.main-content {
    width: 100%; /* Ensure the main content uses full width */
    padding: 0; /* Reset padding */
    display: flex; /* Use flexbox to center logo */
    align-items: center; /* Center content vertically if needed */
    margin: 0px;
}

.center-logo {
    max-width: 90%; /* Allow logo to be large but not overrun */
    height: auto; /* Maintain aspect ratio */
    margin: 0; /* Remove any external margin */
    display: block; /* Treat the logo as a block element */
    background-image: url('marbleBackgroundMobile.jpg');
    padding: 10%;
    top: 0px;
    margin-top: 60px;
    border-bottom: 2px solid #990a0a;
}

.background-image {
    display: none;
    
}

.overlay {
    display: none;
}

.mobile-main-background{
    display: block;
    z-index: -5;
}

.mobile-selectors{
    display: block;
    padding: 0px;
    width: 80%;
    text-align: center;
}

.mobile-selectors li{
    list-style: none;
    border: 2px solid #990a0a;
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
}

.mobile-selectors a {
    color: #990a0a;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding-top: 5px;
}

.mobile-selectors img{
    width: 100%;
    height: auto;
    padding-top: 5px;
    vertical-align: bottom;
}





/*   ---------- ---------- ---------- FAQ ---------- ---------- ---------- */

.main-container-faq {
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack vertically */
    max-width: 100%; /* Ensure full width */
    width: 100%; /* Full width of the screen */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: auto;
}

.banner {
    background-image: url('marbleBanner.png'); /* Replace with your image URL */
    background-size: cover; /* Make sure the image covers the area */
    background-position: center; /* Center the background image */
    padding: 10px; /* Add some padding for spacing */
    border-radius: 2px; /* Optional: rounded corners for the banner */
    color: #990a0a; /* Dark red color for the text */
    text-align: center; /* Center the text */
    margin-bottom: 20px; /* Space between the banner and other sections */
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;

}

.banner h1 {
    font-size: 2em; /* Adjust font size as needed */
    margin: 0; /* Remove default margin */
    font-size: 27px;
}



.info-item, .faq-item {
    margin-bottom: 20px;    /* Space between items */
    border: 1px solid #ececec; /* Light border for distinction */
    border-radius: 5px;     /* Rounded corners */
    padding: 0;             /* Inner spacing */
    background-color: #f9f9f9; /* Light background for readability */
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;  /* Include padding in the width */
}

.faq-item li{
    padding-right: 10px;             /* Inner spacing */
}

.info-section, .faq-section {
    max-width: 100%; /* Set max width to keep section content centered and not too wide */
    width: 100%; /* Allow section to take full width up to max-width */
    margin-left: 0px; /* Offset for sidebar, this ensures they line up with the main content */
    padding: 10px; /* Add padding for better spacing around the content */
    box-sizing: border-box; /* Include padding in total width */
    padding-top: 0px;
}

.info-section h2{
    margin-top: 10px;
}

.faq-section h2 {
    margin-top: 0px;
}

h2 {
    color: #990a0a; /* Same color for section headings for consistency */
    border-bottom: 2px solid #990a0a; /* Underline style to differentiate section headings */
    padding-bottom: 5px; /* Space below the heading */
    padding-left: 10px;
    font-size: 22px;
}

.box-text{
    padding: 10px;
    margin: 0px;
}

.info-item, .faq-item {
    margin-bottom: 20px;    /* Space between items */
    border: 1px solid #ececec; /* Light border for distinction */
    border-radius: 5px;     /* Rounded corners */
    padding: 0;             /* Inner spacing */
    background-color: #f9f9f9; /* Light background for readability */
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;  /* Include padding in the width */
}

.info-title, .faq-title {
    cursor: pointer; /* Indicate that it's clickable */
    font-size: 1.2em; /* Slightly larger font for titles */
    color: #990a0a; /* Consistent color as sidebar links */
    margin: 0; /* Remove default margins */
    border: 1px solid #990a0a; 
    border-radius: 5px; 
    padding: 10px; /* Inner spacing */
    font-size: 19px;
}

.materialType p {
    font-weight: bold;               /* Make the text bold to look like a title */
    font-size: 1.2em;                /* Slightly increase the font size */
    text-align: left;              /* Center align the text */
    position: relative;              /* Allow positioning the border as a pseudo-element */
    padding-bottom: 10px;            /* Add spacing below the text */
    margin-bottom: 20px;             /* Space below the border for separation */
    padding-left: 15px;
}


.material-content {
    margin-top: 10px; /* Space above content */
    display: none; /* Ensure content is hidden initially */
}

.materialType {
    margin-bottom: 10px;         /* Space between material items */
    border: 2px solid #990a0a; /* Light border for distinction */
    border-radius: 2px;      /* Rounded corners */
    background-color: #f9f9f9; /* Light background for readability */
    width: 98%;               /* Set width to 90% to give some space on both sides */
    margin-left: auto;       /* Center horizontally */
    margin-right: auto;      /* Center horizontally */
    box-sizing: border-box;   /* Include padding in the box width */
}

    .materialType p{
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 0px;
    }

.sampleRow {
    display: flex; /* Use flexbox to align images in a row */
    gap: 10px; /* Space between images */
    margin: 10px 0; /* Space above and below the images */
    padding-left: 0px;
    padding-right: 0px;
    width: 100%; /* Ensure it takes up the full width of the material-type box */
    height: 50px;
    box-sizing: border-box; /* Include padding and border in width calculation */
    justify-content: center; /* Center the images horizontally */
    
}

.sampleRow img {
    height: auto;
}

.whiteQuartzImg {
    border: 1px solid #990a0a;
}

.description {
    margin-top: 10px; /* Space above description text */
    padding: 15px;
}

.image-container {
    display: flex;                 /* Use flexbox for alignment */
    flex-direction: column;        /* Stack images vertically */
    justify-content: center;       /* Center the images vertically */
    align-items: center;           /* Center the images horizontally */
    gap: 10px;                     /* Add space between the images */
    margin-top: 10px;              /* Add some margin to create space above */
}

.image-item {
    width: 90%;                    
    height: auto;                  /* Maintain the aspect ratio of the images */
    border-radius: 2px;            /* Optional: Add rounded corners */
    border: 1px solid #990a0a;     /* Add a border to match the overall theme */
    margin-bottom: 10px;
}

.faq-image {
    display: block; /* Ensure the image is on a new line */
    margin: 20px auto; /* Center the image and add spacing above and below */
    max-width: 90%; /* Responsive size: adjust to fit within the container */
    height: auto; /* Maintain the aspect ratio */
}






/*   ---------- ---------- ---------- REPAIRS ---------- ---------- ---------- */









.main-container-repairs {
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack vertically */
    max-width: 100%; /* Ensure full width */
    width: 100%; /* Full width of the screen */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: auto;
}

.button-wrapper {
    text-align: center; /* Center the button */
    margin: 0px; /* Add some margin */
}

.styled-button {
    background-color: #ffffff; /* Button color */
    color: #990a0a; /* Button text color */
    border: none; 
    border-radius: 5px; 
    padding: 10px 10px; 
    cursor: pointer; /* Cursor changes to pointer */
    font-size: 1em; /* Font size */
    transition: background-color 0.3s; /* Smooth transition */
    border: 2px solid #990a0a;
    font-weight: bold;
}



.paragraph-box {
    display: block; /* Show by default or you can control this via JS */
    max-width: 1200px; /* Limit width */
    margin: 10px auto; /* Center it */
    padding: 10px; /* Add padding */
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #e0e0e0; /* Border styling */
    border-radius: 5px; /* Rounded corners */
}

.paragraph-box p{
    margin: 10px;
}

.info-paragraph {
    display: none; /* Hide the paragraph initially on mobile */
}

.info-button {
    display: block; /* Show the info button on mobile */
    margin: auto;
    margin-bottom: 10px;
    background-color: #ffffff; /* Button color */
    color: #990a0a; /* Button text color */
    border: none; 
    border-radius: 5px; 
    border: 2px solid #990a0a;
    font-size: 1em; /* Font size */
    font-weight: bold;
    padding: 5px 20px; 
}

.card {
    width: 90%;  /* Make the card take up 90% of the main container */
    padding: 10px;
    border: 1px solid #990a0a;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 30px;
}


.card h3 {
    color: #990a0a;
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 0px;
    padding-bottom: 3px;
    border-bottom: 3px solid #990a0a;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.card p {
    color: #990a0a; /* Set text color to red */
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
    margin: 0px;
    line-height: 1.5em;
    text-align: justify; /* Align text to justify on both the left and right */
    padding-bottom: 15px;
}

.repair-card {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative; /* Positioning context for carousel buttons */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.carousel-slide {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center the images horizontally */
    width: 100%;
    overflow: hidden; /* Keep overflow hidden to show one image at a time */
}

.carousel-item {
    display: none; /* Hide all items initially */
    width: 100%;
}

.carousel-item.active {
    display: block; /* Show only the active item */
    justify-content: center; /* Center the content */
}

.carousel-image {
    width: 100%; /* Set images to take full width */
    height: auto; /* Maintain aspect ratio */
}

.carousel-button {
    background-color: #990a0a;
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 2em;
    border-radius: 10%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    line-height: 1; /* Add this line */
  }

  .bottom-spacer{
    height: 0px;
  }

  /*   ---------- ---------- ---------- COUNTERTOPS ---------- ---------- ---------- */


  .paragraph-box{
    line-height: 1.2em;
  }


  .main-container-counters {
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack vertically */
    max-width: 100%; /* Ensure full width */
    width: 100%; /* Full width of the screen */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: auto;
}



.seams-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    padding-bottom: 0px;
    border: 1px solid #e0e0e0; /* Keep the same border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Keep rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Layout children in a row */
    text-align: center;
}


.seams-text {
    width: 100%; /* Take up 30% of the card width */
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.seams-images {
    display: flex;               /* Use flexbox for layout */
    flex-direction: column;      /* Stack each image-row vertically */
    align-items: center;         /* Center content horizontally */
    width: 100%;
}

.image-row {
    display: flex;               /* Keep this as flex to lay out images horizontally */
    flex-direction: column;      /* Stack images in the same row vertically */
    align-items: center;         /* Center images horizontally */
    margin-bottom: 10px;        /* Optional: adds space between rows */
}

.seams-image {
    width: 95%;                 /* Each image takes up 90% of the width of the seams-card */
    height: auto;               /* Maintain aspect ratio */
    margin-bottom: 0px;         /* Optional: adds spacing between images */
    display: block;             /* Ensures images are block elements */
}

.counter-title {
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1.5em; /* Adjust to match the heading size */
    margin-bottom: 10px; /* Space below the heading */
    border-bottom: #990a0a solid 2px;
}

.counter-description {
    max-width: 1200px; /* Control the width of the description */
    background-color: #f9f9f9; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1em; /* Control the size of the text */
    line-height: 1.2em; /* Line height for readability */
    text-align: justify; /* Align text to justify on both sides */
}

.fitting-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    border: 1px solid #e0e0e0; /* Border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Layout children in a row */
    text-align: center;
}

.fitting-text {
    width: 100%; 
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.fitting-images {
    width: 100%; 
}



.fitting-img {
    width: 100%; /* Each image takes up about half of the row width */
    border-radius: 0px; /* Optional: Add rounded corners */
    margin-bottom: 10px;         /* Optional: adds spacing between images */
}

.edgework-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 10px auto; /* Center card */
    padding: 10px;
    border: 1px solid #e0e0e0; /* Border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    display: flex; /* Flexbox for layout */
    flex-direction: column; /* Layout children in a row */
}

.edgework-text {
    width: 100%; /* Take up 50% of the card width */
    padding-right: 30px; /* Add some space between text and images */
    margin-top: auto;
    margin-bottom: auto;
}

.edgework-img {
    width: 100%; /* Each image takes up about half of the row width */
    border-radius: 0px; /* Optional: Add rounded corners */
    margin-left: auto;
    margin-right: auto;
}

.edgework-images {
    width: 100%; 
}

.buying-card {
    width: 90%; /* Ensure it takes most of the width */
    margin: 20px auto; /* Center card */
    margin-bottom: 10px;
    padding: 10px;
    padding-bottom: 0px;
    border: 1px solid #e0e0e0; /* Keep the same border color */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Keep rounded corners */
}

.buying-title {
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1.5em; /* Adjust to match the heading size */
    margin-bottom: 10px; /* Space below the heading */
    text-align: center;  /* Center the title */
}

.buying-images {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack rows vertically */
}

.process-image-row {
    display: flex; /* Use flexbox for row layout */
    justify-content: space-between; /* Space between items */
    margin-bottom: 10px; /* Space between rows */
    flex-direction: column;
}

.process-item {
    width: 100%; /* Each item takes up approximately half of the row width */
    text-align: center; /* Center text */
    border: 1px solid #e0e0e0; /* Border color */
    border-radius: 5px; /* Keep rounded corners */
    background-color: #ffffff;
}

.process-subtitle {
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    font-size: 1em; /* Control the size of the text */
    line-height: 1.2em; /* Line height for readability */
    text-align: justify; /* Align text to justify on both sides */
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.buying-img {
    width: 95%; /* Ensure image takes full width */
    border-radius: 0px; /* Optional: Add rounded corners */
    padding-bottom: 10px;
}

.portfolio-section {
    width: 90%;
    margin: 0px auto;
    text-align: center;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.portfolio-item {
    position: relative;
    width: 48%; /* Adjust percentage based on screen size */
    margin: 0px;
    overflow: hidden;
    cursor: pointer; /* Indicate interactivity */
}

.portfolio-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease; /* Add hover effect */
    padding: 5px;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1); /* Zoom effect on hover */
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    text-align: center;
    padding: 10px 0;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Fade effect */
}

.portfolio-item:hover .overlay-text {
    opacity: 1; /* Show text on hover */
}

/* Modal styles */

#caption {
    text-align: center; /* Center the caption text */
    color: #990a0a; /* Change caption text color to red */
    margin-top: 30px; /* Add some space above the caption */
    font-weight: bold;
}


.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Prevent scrolling */
    background-color: rgba(255, 255, 255, 0.95); /* Black background with opacity */
}

.modal-content {
    margin: auto; /* Adjust the left and right margins as needed */
    margin-top: 100px;
    display: block;
    width: calc(100% - 40px); /* Adjust width to account for margins */
    max-width: 800px; /* You can also limit the maximum width */
    height: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #990a0a;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}










/*   ---------- ---------- ---------- STONEGUARD ---------- ---------- ---------- */






    .main-container-stoneguard{
        display: flex; /* Use flex to center content */
        flex-direction: column; /* Stack vertically */
        max-width: 100%; /* Ensure full width */
        width: 100%; /* Full width of the screen */
        padding: 0; /* Reset padding */
        margin: 0; /* Reset margin */
        height: auto; 
 
    }


.sg-cards-container {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Distribute space evenly */
    width: 90%; /* Set the width for the card container */
    margin: 20px auto; /* Center the container */
    box-sizing: border-box; /* Include padding and border in the total width */
    color: #990a0a; /* Set text color to match the theme */
    line-height: 1.2em;
    flex-direction: column; /* Stack cards vertically only on mobile */
    justify-content: center; /* Center the cards vertically */
    align-items: center; /* Center the cards horizontally */
}

.sg-card {
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #e0e0e0; /* Border color */
    border-radius: 5px; /* Rounded corners */
    width: 100%; /* Set a fixed width for each card */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Center text */
    margin-bottom: 10px;
}

.sg-card-image {
    width: 100%; /* Ensure image takes full width of the card */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners for the image */
}

.sg-text{
    text-align: justify;
    padding-left: 20px;
    padding-right: 20px;
}







/*   ---------- ---------- ---------- COMMERICIAL ---------- ---------- ---------- */


    .main-container-commerical{
        display: flex; /* Use flex to center content */
        flex-direction: column; /* Stack vertically */
        max-width: 100%; /* Ensure full width */
        width: 100%; /* Full width of the screen */
        padding: 0; /* Reset padding */
        margin: 0; /* Reset margin */
        height: auto;
    }






.badge-card {
    max-width: 1200px; /* Control the width of the card */
    width: 90%; /* Make it responsive */
    margin: 10px; /* Set equal margin on all sides */
    background-color: #ffffff; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding for spacing */
    text-align: center; /* Center text within the card */
    border: 1px solid #e0e0e0; /* Border color */
}

.badge-container {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center badges in the container */
    gap: 10px; /* Space between badges */
}

.badge {
    width: 70px; /* Set a fixed width for badges */
    height: auto; /* Set a fixed height for badges */
    border-radius: 0px; /* Rounded corners for badges */
    overflow: hidden; /* Hide overflow to maintain shape */
    transition: transform 0.3s; /* Smooth transition for hover effect */
}

.badge img {
    width: 100%; /* Make the image fill the badge */
    height: auto; /* Maintain aspect ratio of the image */
}












/*   ---------- ---------- ---------- CONTACT ---------- ---------- ---------- */


.main-container-contact{
    display: flex; /* Use flex to center content */
    flex-direction: column; /* Stack vertically */
    max-width: 100%; /* Ensure full width */
    width: 100%; /* Full width of the screen */
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: auto;  
}


.title-card {
    width: 90%; /* Make it responsive */
    background-color: #f9f9f9; /* Light background */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Center the text */
    position: relative; /* Position for potential absolute elements if needed */
    top: 40px; /* Adjust this value to overlap with the top of the map-card, customization may be needed depending on your layout */
    border: 2px solid #990a0a; /* Set initial border color */

}

.title-card h2 {
    color: #990a0a; /* The same color as the theme */
    margin: 0; /* Remove default margin */
    border: none;
    font-size: 1.1em;
}


.map-card {
    max-width: 1200px; /* Control the width of the entire card */
    width: 90%; /* Make it responsive */
    margin: 20px; /* Set equal margin on all sides */
    margin-top: 0px;
    background-color: #f9f9f9; /* Light background for readability */
    border-radius: 5px; /* Rounded corners */
    padding: 20px; /* Padding for spacing */
    text-align: center; /* Center content within the card */
}

.map-image {
    width: 100%; /* Make the map image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Rounded corners for the image */
    margin-bottom: 5px; /* Space below the image */
}

.contact-cards-container {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-direction: column; /* Stack vertically */
    justify-content: space-around; /* Space cards evenly */
    gap: 20px; /* Add space between cards */
}

.contact-card {
    width: 100%;
    border: 1px solid #e0e0e0; /* Set initial border color */
    border-radius: 5px; /* Ensure the border radius is applied */
    overflow: hidden; /* Prevent overflow of the image on zoom */
    transition: border-color 0.3s ease; /* Smooth transition for border color */
    position: relative; /* Positioning context for hover effect */
    text-decoration: none;
    border-width: 2px;
}

.contact-card:hover {
    border-color: #990a0a; /* Change the border to red on hover */
    border-width: 2px;
    background-color: #ffffff;
}

.contact-card img {
    transition: transform 0.3s ease; /* Smooth transition for zoom effect */
    width: 100%; /* Ensure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}

.contact-card:hover img {
    transform: scale(1.1); /* Zoom in effect */
}

.contact-image {
    width: 100%; /* Make the image fill the card width */
    height: auto; /* Maintain aspect ratio of the image */
    border-radius: 5px 5px 0px 0px; /* Rounded corners */
    margin-bottom: 5px; /* Space below the image */
}

.contact-info h3 {
    color: #990a0a; /* Set text color for contact name */
    margin: 0; /* Remove default margin */
}

.contact-info p {
    margin: 10px 0; /* Space between contact info lines */
    color: #990a0a; /* Set color for contact info */
    text-decoration: none;
    padding-left: 15px;
    padding-right: 15px;
}


.social-cards-container {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping for multiple rows */
    justify-content: space-between; /* Space cards evenly */
    width: 90%; /* Make it responsive */
    max-width: 1200px; /* Set a max width for the container */
    margin: 20px auto; /* Center the container */
    flex-direction: column; /* Stack vertically */
}

.social-card {
    display: flex; /* Maintain flex layout */
    flex-direction: column; /* Stack items vertically */
    width: 95%; /* Each card takes up about one-third of the row */
    background-color: #ffffff; /* White background for cards */
    border: 2px solid #990a0a; /* Light border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Inner spacing */
    text-align: center; /* Left-align text inside cards */
    margin-bottom: 20px; /* Space below each card */
    text-decoration: none;
}



.social-card:hover {
    border: 2px solid #990a0a; /* Light border */
    background-color: #e0e0e0; /* White background for cards */
}


.social-header {
        display: flex; /* Use flexbox for alignment */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        margin-bottom: 10px; /* Space below header */
        color: #990a0a;
}

.social-icon {
    width: 30px; /* Adjust icon size as needed */
    height: 30px; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between icon and the title */
}

.social-card h3 {
    margin-top: 20px; /* Remove default margin */
}

.social-card p {
    margin: 5px 0 0 0; /* Space above the paragraph */
    color: #990a0a; /* Set color for contact info */
}

.social-card a {
    text-decoration: none; /* Remove underline from links inside social cards */
}























}