body {
    font-family: lato, sans-serif;
    background-color:#f7f7f7;
    margin: 0;
    padding: 0;
    overflow-x: scroll;
    font-weight: 100;
}

.card-image{
    width: 80%;
    margin-left: -50px;
    cursor: pointer;
}

/* Specific styles for the logo link */
#logo-link {
    display: flex;
    align-items: center;
    margin-left: 0;
}

/* Image within the logo link */
#logohem {
    width: auto;
    height: 40px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */

}


.button {
    background: #43b775; /* Fresh professional green */
    border: none;
    color: #ffffff;
    padding: 16px 50px; /* Slightly more balanced padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px; /* Slightly smaller for more refinement */
    font-weight: 600; /* Increased font weight for better visibility */
    border-radius: 30px; /* More pronounced rounded edges for modern look */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 10px 20px rgba(67, 183, 117, 0.25); /* Softer shadow */
    animation: pulse 2s infinite alternate; /* Subtle pulse effect */
    outline: none; /* Remove outline when clicked */
    margin-top:40px;
}

/* Button Hover */
.button:hover {
    background: #369a60; /* Slightly darker green on hover */
    transform: translateY(-3px); /* Slight lift on hover for depth */
    box-shadow: 0px 15px 35px rgba(67, 183, 117, 0.4); /* Stronger shadow on hover */
}

/* Active Click Effect */
.button:active {
    transform: scale(0.98); /* Shrinks slightly for click feedback */
    box-shadow: 0px 6px 18px rgba(67, 183, 117, 0.2); /* Softened shadow when active */
}

/* Soft Glow Effect */
.button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350%;
    height: 350%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 60%); /* Subtle glow */
    transition: all 0.4s ease-in-out;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.button:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Pulsing Animation */
@keyframes pulse {
    0% {
        box-shadow: 0px 10px 25px rgba(67, 183, 117, 0.3);
    }
    100% {
        box-shadow: 0px 15px 35px rgba(67, 183, 117, 0.5);
    }
}


/* Image within the logo link */
#navbaricon {
  width: auto;
  height: 20px; /* Adjust height as needed */
  padding: 0 10px; /* Adjust padding as needed */
  margin-left: -30px;
  margin-top: 0px;
  position: absolute;
}

.square-container {
    display: flex; /* Aligns child divs horizontally */
    gap: 20px; /* Optional: adds space between the squares */
    margin-top: 20px; /* Optional: space from the content above */
  }
  
  
  
  .square-div {
    width: 150px; /* Width of each square div */
    height: 150px; /* Height of each square div */
    background-size: contain; /* Ensures the background image is resized within the div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-color: #cce3f7; /* Example background color */
    background-size: 50%;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  

  /* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
    .card-info {
        flex-direction: column; /* Stack content vertically */
    }


    .square-container {
        order: 2; /* Ensure squares appear below the image and name */
        margin-top: 10px;
    }

    .card-details {
        order: 3; /* Ensure details come last */
    }
}

  /* Mobile-specific adjustments */
  @media screen and (min-width: 768px) and (max-width: 1024px) {
    .card-info {
        flex-direction: column; /* Stack content vertically */
    }


    .square-container {
        order: 2; /* Ensure squares appear below the image and name */
        margin-top: 10px;
    }

    .card-details {
        order: 3; /* Ensure details come last */
    }
}


#menuname
{
    color:#1b3153;
    font-size: 18px;
    font-family: lato, sans-serif;
    background-color: #f7f7f7;
    font-weight: 400;
    border-radius: 4px;
    margin-top:5px;





}

/* navbar for computer */
@media screen and (min-width: 1000px) {

    /* Image within the logo link */
  #navbaricon {
    width: auto;
    height: 20px; /* Adjust height as needed */
    padding: 0 10px; /* Adjust padding as needed */
    margin-left: -30px;
    margin-top: 0px;
    position: absolute;
  }
  
  #navbaricon:hover {
   color:blue;
  }
  

  
  /* Hover effect for navbar links, excluding the logo link */
#navbar a:hover:not(#logo-link) {
  color: #4681f4; /* Elegant deep blue */
}
  
  
  
  
    /* Style the navbar */
  #navbar {
    background-color: #f7f7f7;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,.2);
      z-index:2; /*Add this*/
      overflow: hidden;
      display: flex;
      align-items: center; /* Vertically center items */
      font-size: 19px;
      z-index: 9999;
      position: sticky;
      top:0;
    
  
  
    }
  

  
    
    /* Navbar links */
    #navbar a {
      float: left;
      display: block;
      color:#1a2d48;
      text-align: center;
      padding: 24px;
      text-decoration: none;
      overflow: hidden;
    }
  
  
    #navbar a:active {
      background-color: #f7f7f7;
      font-size: 100%;
      background-color: #bdceefab;
      border-radius: 3px;
    }
   
    }
    /* End of navbar for computer*/

/* Navbar and menu styles */
.dropdown {
    float: left; /* Float left to align it properly */
    position: relative; /* Ensure relative positioning for absolute children */
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: rgb(219, 13, 13);
    padding: 34px 8px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones */
    margin: 0; /* Important for vertical align on mobile phones */
    cursor: pointer; /* Add cursor pointer to indicate it's clickable */
}

/* Rotate the button (and the hamburger inside it) */
.dropdown:hover .dropbtn {
    transform: rotate(-90deg);
  }
  
 

#propertytop {
    width: 7%;
    top: 13px;
    position: relative;
    margin-left: 23.3%;
    color: rgb(92, 90, 90);
}

#propertybottom {
    width: 7%;
    top: 13px;
    position: relative;
    margin-left: 20%;
}

#property_text {
    color: rgb(92, 90, 90);
    margin-left: 10%;
    margin-top: -4.5%;
}

.dropdown-content a:hover {
    background-color: #dddddd00; /* Change to your desired hover color */
}

.dropdown:hover .dropdown-content {
    position: fixed !important;
    text-align: left;
}

.hamburger {
    width: 30px;
    height: 2px;
    background-color: black;
    margin: 4px 0; /* Adjusted margin for spacing between lines */
    border-radius: 5px;
}

#navbar a {
    float: left;
    display: block;
    color: #1a2d48;
    text-align: center;
    padding: 24px;
    text-decoration: none;
    overflow: hidden;
}

#navbar a:active {
    background-color: #f7f7f7;
    font-size: 100%;
    background-color: #bdceefab;
    border-radius: 3px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.sticky + .content {
    padding-top: 60px;
}

/* Card styling */
#cardsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding-top: 300px;
    overflow-x: auto; /* Enable horizontal scrolling */
}

.card-info {
    background-color: #f7f7f7;
    border-radius: 8px;
    margin: 20px;
    width: 300px;
    margin-left: -4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #2c456b;
    text-align: center;

}

.card-info_single {
    background-color: #dfe5f2;
    border-radius: 8px;
    margin: 20px;
    width: fit-content;
    margin-left: -4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #2c456b;
    text-align: center;
}

/* Hover effect for images inside .card-info */
.card-info img {
    transition: filter 0.3s ease, border-width 0.3s ease; /* Smooth transition for hover effects */
}

.card-info img:hover {
    filter: brightness(105%); /* Increase brightness on hover */
    border-width: medium; /* Apply medium border width on hover */
}


.card-info img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    color: #2c456b;
    margin-left: 12%;
}

.card-details {
    padding: 0px;
    width: 100%;
    text-align: center;
    color: #2c456b;
    font-family: lato, sans-serif;
    font-weight: 100;
    
}

.card-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c456b;
    margin-left: 30%;
    font-family: lato, sans-serif;
    font-weight: 100;
}

.card-details table {
    width: 100%;
    border-collapse: collapse;
    font-family: lato, sans-serif;
    font-weight: 100;
    overflow-x: scroll;
}

.card-details th,
.card-details td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    
}


/* Alternating row colors */
.card-info tr:nth-child(even) td {
    background-color: #2c456b;
    color: #FFFFEB;
    font-family: lato, sans-serif;
    font-weight: 100;
    overflow-x: scroll;
}




.card-info tr:nth-child(odd) td {
    background-color: #efeffa;
    color: #2c456b;
    font-family: lato, sans-serif;
    font-weight: 100;
    overflow-x: scroll;
}

#ratingall{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    margin-left: -100%;
  }


  #symbolerrating_info{
    box-shadow: none;
    width: 24px; /* Adjust as needed */
    height: 24px; /* Adjust as needed */
    margin-right: -65px; /* Adjust space between stars */
  }

.card-info tr:nth-child(odd) th {
    background-color: #efeffa;
    color: #2c456b;
}

.card-info .apply-now {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4680f4;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 18px;
}

/* Alternating row colors */
.card-info tr:nth-child(even) th {
    background-color: #2c456b;
    color: #FFFFEB;
}

.card-details .apply-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #4680f4;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.card-details .apply-link:hover {
    background-color: #3461c1;
}

/* Footer Styles */
/* Footer Styles */
.footer {
    background-color: #1a2d48;
    color: white;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
  }
  
  .footer-section {
    flex: 1;
    margin: 10px 20px;
  }
  
  .footer-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
  }
  
  .footer-section p,
  .footer-section ul,
  .footer-section a {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .footer-section a {
    color: white;
    text-decoration: none;
  }
  
  .footer-section a:hover {
    text-decoration: underline;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section .social a {
    font-size: 20px;
    margin: 0 10px;
    display: inline-block;
  }
  
  .footer-section .social a:hover {
    color: #4681f4;
  }

  #colorcard
{
  margin-top: -3%;
  margin-left: -3%;
  width: 7%;
  position: absolute;
}
  
  .footer-bottom {
    background-color: #0d1a2b;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 14px;
  }
  

/* Add this to your CSS */
#compareContainer {
    text-align: center;
    margin: 20px;
}

#compareButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: gray;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
}

#compareButton.enabled {
    background-color: #4680f4;
    cursor: pointer;
}

#warningMessage {
    color: red;
    margin-top: 10px;
}

#warningMessage.hidden {
    display: none;
}

/* Card styling */
.card-details .apply-now {
    display: block;
    text-align: center;
    margin: 20px auto 0; /* Center the button and add margin */
    padding: 10px 25px;
    background-color: #4681f4;
    color: #f7f7f7;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    font-size: 20px;
    border-radius: 30px;
    border: 1px solid #4681f4;
    padding-bottom: 10px;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);
}

.card-details .apply-now:hover {
    background-color: #2e6dec;
    color:#FFFFEB;
}

#informationcredit_compare{
    background-color:#f7f7f7;
    width: 70%;
    height: 20%;
    margin-left: 15%;
    border-radius: 10px;
    color: #FFFFEB;
    position: absolute;
    margin-top: 10%;

    
  }
  
  #categorytitle
  {
    font-family: lato, sans-serif;
    color:  #2c456b;
    text-align: center;
    font-family: lato, sans-serif;
    
    
  }
  
  #categorytitle2
  {
    font-family: lato, sans-serif;
    color:  #666;
    text-align: center;
    font-weight: 200;
  
  }

  
  /* Container for displaying the card comparison tables side by side */
#cardsContainer {
    display: flex;               /* Use flexbox for side-by-side layout */
    justify-content: center;     /* Center the tables in the container */
    gap: 500px;                   /* Adjust the space between the tables */
    align-items: flex-start;     /* Align tables at the top */
    flex-wrap: wrap;             /* Ensure tables wrap to the next line if necessary */
    padding: 20px;
    margin: 0 auto;              /* Center the container itself */
    overflow-x: auto; /* Enable horizontal scrolling */
}

/* Ensure the table inside each card takes up full width */
.card-details table {
    width: 100%;                 /* Make table take the full width of the card */
    border-collapse: collapse;   /* Ensure no gaps between table cells */
}

/* Styling for table rows and columns */
.card-details th, .card-details td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;            /* Align table content to the left */
    overflow: scroll;
}

/* Optional: Add alternating row colors for better readability */
.card-details tr:nth-child(odd) {
    background-color: #efeffa;
}
.card-details tr:nth-child(even) {
    background-color: #2c456b;
    color: #fff;
}







/* Container for displaying the card comparison tables side by side */
#cardsContainer {
    display: flex;               /* Use flexbox for side-by-side layout */
    justify-content: center;     /* Center the tables in the container */
    gap: 0px;                   /* Adjust the space between the tables */
    align-items: flex-start;     /* Align tables at the top */
    flex-wrap: wrap;             /* Ensure tables wrap to the next line if necessary */
    padding: 20px;
    margin: 0 auto;              /* Center the container itself */
    overflow-x: auto; /* Enable horizontal scrolling */
}

/* Ensure the table inside each card takes up full width */
.card-details table {
    width: 100%;                 /* Make table take the full width of the card */
    border-collapse: collapse;   /* Ensure no gaps between table cells */
    table-layout: fixed;         /* Ensure consistent column widths */
}

/* Equal row height across tables */
.card-details th, .card-details td {
    padding: 10px;
    text-align: left;            /* Align table content to the left */
    height: 50px;                /* Fixed height for each row to ensure uniformity */
    vertical-align: middle;      /* Ensure content is vertically aligned */
    font-size: 14px;             /* Uniform font size (can adjust as needed) */
    overflow: hidden;            /* Hide overflow text */
    text-overflow:clip;     /* Add ellipsis if text overflows */
    white-space: nowrap;         /* Prevent text from wrapping */
}

/* Optional: Add alternating row colors for better readability */
.card-details tr:nth-child(odd) {
    background-color: #efeffa;
}

.card-details tr:nth-child(even) {
    background-color: #2c456b;
    color: #fff;
}

/* Fixed column widths */
.card-details th, .card-details td {
    width: 50%;                  /* Ensures that each column takes up 50% of the row */
}

/* Default style for all card tables */
.card-details table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

@media (min-width: 1000px) {
    .card-image{
        width: 60%;
        margin-left: -50px;
    }

}

/* Center text in the remaining card's table cells */
.card-info:nth-child(n+2) .card-details td {
    text-align: center;           /* Center the text horizontally */
    vertical-align: middle;       /* Center the text vertically */
}





#comparisonContainer {
    display: flex;                /* Use Flexbox to align cards side by side */
    flex-wrap: nowrap;           /* Prevent wrapping */
    justify-content: flex-start;  /* Align items to the start */
    padding: 20px;               /* Padding inside the container */
    margin: 20px auto;           /* Center the container */
    background-image: linear-gradient(to bottom right, #f7f7f7, #f6f9fc);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    overflow-x: auto;            /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Optional: Enable snap scrolling */
    border: 2px solid #2c456b;   /* Add a border around the container */
    border-radius: 10px;         /* Optional: Add rounded corners */
}


.card-info {
    background-color: #f7f7f7;
    border-radius: 8px;
    width: 300px;                /* Fixed width for cards */
    flex: 0 0 auto;             /* Prevents flex items from growing */
    margin: 0px;               /* Add space between individual cards */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #2c456b;
    text-align: center;
}



/* Optional: Center the content inside each card */
.card-info .card-details {
    text-align: center;
}

/* Adjust button styles (optional) */
.apply-now {
    display: block;
    margin-top: 10px;
    background-color: #4680f4;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}
.apply-now:hover {
    background-color: #3461c1;
}

.coop-info {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text color */
    text-align: center; /* Center the text */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Padding around the text */
    margin: 10px 0; /* Margin above and below the div */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Small box shadow */
  }



#cardsContainer {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    padding: 20px;
    gap: 20px; /* Space between cards */
    scrollbar-width: thin; /* For Firefox */
}

.card-info {
    background-color: #f7f7f7;
    border-radius: 8px;
    width: 300px; /* Fixed width for cards */
    flex: 0 0 auto; /* Prevents flex items from growing */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #2c456b;
    text-align: center;
}

/* Custom scrollbar styles (optional) */
#cardsContainer::-webkit-scrollbar {
    height: 8px; /* Height of the scrollbar */
}

#cardsContainer::-webkit-scrollbar-thumb {
    background: #ccc; /* Color of the scrollbar */
    border-radius: 10px; /* Rounded corners */
}

#cardsContainer::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}


/* Media query for smaller screens */
/* Media Query for Mobile */
@media (max-width: 600px) {
    #comparisonContainer {
        padding: 10px; /* Adjust padding for smaller screens */
    }

    .card-info {
        width: 50%; /* Full width on mobile */
        max-width: 20px; /* Minimum width for cards */

    }

    .card-info img {
        width: 50%; /* Smaller image width */
        height: auto; /* Maintain aspect ratio */
    }
}