/* Import Montserrat and Roboto Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Apply specific styling to the Technology Section */
#features-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: 'Roboto', sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

/* Apply Montserrat to Headings */
#features-section h1, 
#features-section h2, 
#features-section h3, 
#features-section h4, 
#features-section h5, 
#features-section h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #000000;
}

/* Card Styles */
.card-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 350px;
    flex: 1 1 30%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon {
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card:hover .icon {
    transform: scale(1.1);
}

/* Text and Highlight Styles */
#features-section h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
}

#features-section p {
    font-size: 1rem;
    margin: 10px 0 20px;
    color: #000000;
    font-family: 'Roboto', sans-serif;
}

.highlight {
    font-size: 21px;
    color: #003b4d;
    font-weight: bold;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

/* Ensure the section and its content do not cause horizontal overflow */
#features-section, 
.card-container, 
.card {
    overflow-x: hidden;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        max-width: 300px;
        flex: 1 1 30%;
    }
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }

  .section-title {
     font-size: 20px;
  }

  #features-section{
    padding: 19px 5px;
  }

}
