/* Specific styling for the services section */
#assured-services {
background: linear-gradient(90deg, rgba(61, 61, 133, 1) 0%, rgba(149, 148, 207, 1) 100%); /* Desired background color */
    padding: 50px 0;
    width: 100%;
    overflow-x: hidden;
}

.containerss {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Changed from flex-start to stretch */
    margin: 50px;
    gap: 70px;
    padding: 0 36px;
    position: relative; /* Ensure containerss has positioning */
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.card {
     background: linear-gradient(90deg, rgba(99, 98, 155, 1) 0%, rgba(61, 61, 133, 1) 100%);  
     border-radius: 25px;
    width: 350px;
    padding: 30px;
    text-align: center;
    color: white;
    height: auto ;/* Fixed height for all cards */
    position: relative; /* Ensure cards have positioning */
    z-index: 1; /* Higher z-index than #assured-services */
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    flex: 1; /* Allow cards to grow and shrink */
    min-width: 280px; /* Minimum width for cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

/* Adjust the font for card titles */
.card h3 {
  font-family: 'CopperplateCC-Heavy', sans-serif;

    font-size: 0.9em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card p {
    font-size: 0.8em;
    line-height: 1.6;
    flex-grow: 1; /* Allow paragraph to grow and fill space */
}

/* Icons at the top of the card */
.card-icon img {
    width: 60px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure images are responsive */
}

.certifications {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow certification logos to wrap */
    gap: 20px; /* Add gap between wrapped items */
}

.certification-logo {
    margin: 0 10px;
    width: 60px;
    z-index: 1; /* Higher z-index than #assured-services */
    max-width: 100%; /* Ensure logos are responsive */
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 1200px) {
    .containerss {
        gap: 40px;
        margin: 30px;
        padding: 0 20px;
    }
    
    .card {
        width: calc(50% - 40px);
        height: 480px;
    }
}

@media screen and (max-width: 768px) {
    #assured-services {
        padding: 30px 0;
    }
    
    .containerss {
        margin: 20px;
        gap: 30px;
        padding: 0 15px;
    }
    
    .card {
        width: 100%;
        min-width: 100%;
        height: 480px;
    }
    
    .card h3 {
        font-size: 1.2em;
    }
    
    .card p {
        font-size: 0.9em;
    }

    .menu-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    header nav ul {
        position: absolute;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.95);
        padding: 80px 20px 20px;
        transition: 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    header nav ul.active {
        left: 0;
    }

    header nav ul li.logo-container {
        position: absolute;
        top: 10px;
        left: 15px;
        margin: 0;
        z-index: 1001;
    }
}

@media screen and (max-width: 480px) {
    .containerss {
        margin: 15px;
        gap: 20px;
        padding: 0 10px;
    }
    
     .card h3 {
        font-size: 0.9em;
    }
    
    .card p {
        font-size: 0.8em;
    }
    
    .card {
        padding: 20px;
        min-height: auto;
        height: auto;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .card-icon {
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        margin: 0 auto;
        width: 80px;
        height: 80px;
        transition: all 0.3s ease;
    }

    .card-icon img {
        width: 50px;
        margin: 0;
    }

    .card h3,
    .card p {
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        height: 0;
        margin: 0;
    }

    .card.active {
        padding: 30px 20px;
    }

    .card.active .card-icon {
        margin-bottom: 20px;
    }

    .card.active h3,
    .card.active p {
        opacity: 1;
        visibility: visible;
        height: auto;
        margin: 10px 0;
    }

    .certification-logo {
        width: 50px;
        margin: 0 5px;
    }

    header nav ul {
        width: 85%;
    }
}