/* Certificates Section Styling */
.certificates {
    padding: 4rem 0;
    background: #f9f9f9; /* Light background for contrast, adjust to match style.css */
    text-align: center;
}

.certificates .heading {
    font-size: 3.5rem;
    color: #333; /* Matches typical heading color */
    margin-bottom: 2rem;
    text-transform: capitalize;
}

.certificates .heading i {
    color: #27ae60; /* Green accent, adjust to match theme */
    margin-right: 0.5rem;
}

.certificates .qoute {
    font-size: 1.8rem;
    color: #666;
    font-style: italic;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.certificates .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0 2rem;
}

.certificates .box {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 32rem; /* Fixed width for uniformity */
    height: 45rem; /* Fixed height for all boxes */
    display: flex;
    flex-direction: column; /* Use flex to align content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificates .box:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.certificates .box .image {
    height: 22rem; /* Increased fixed height for images */
    overflow: hidden;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.certificates .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the space uniformly without distortion */
    transition: transform 0.3s ease;
}

.certificates .box:hover .image img {
    transform: scale(1.1);
}

.certificates .box .content {
    padding: 2rem;
    text-align: left;
    flex-grow: 1; /* Allows content to fill remaining space uniformly */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spaces out elements evenly */
}

.certificates .box .content h3 {
    font-size: 2.2rem; /* Increased for readability */
    color: #333;
    margin-bottom: 1rem;
}

.certificates .box .content p {
    font-size: 1.6rem; /* Increased for readability */
    color: #666;
    margin-bottom: 1rem;
}

.certificates .box .content h4 {
    font-size: 1.8rem; /* Increased for readability */
    color: #27ae60; /* Green accent, adjust to match theme */
    margin-bottom: 1.5rem;
}

.certificates .box .content .btn {
    display: inline-flex;
    align-items: center;
    background: #27ae60; /* Matches button theme */
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: auto; /* Pushes button to bottom for uniformity */
}

.certificates .box .content .btn:hover {
    background: #219653; /* Darker green on hover */
}

.certificates .box .content .btn span {
    margin-right: 0.5rem;
}

.certificates .viewall {
    margin-top: 3rem;
}

.certificates .viewall .btn {
    background: #333; /* Matches other 'View All' buttons */
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.certificates .viewall .btn:hover {
    background: #27ae60; /* Green accent on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .certificates .heading {
        font-size: 2.8rem;
    }

    .certificates .qoute {
        font-size: 1.6rem;
    }

    .certificates .box {
        width: 100%;
        max-width: 35rem;
        height: auto; /* Allow auto height on small screens for better usability */
    }

    .certificates .box .image {
        height: 20rem;
    }

    .certificates .box .content h3 {
        font-size: 2rem;
    }

    .certificates .box .content p {
        font-size: 1.4rem;
    }

    .certificates .box .content h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 450px) {
    .certificates .heading {
        font-size: 2.2rem;
    }

    .certificates .qoute {
        font-size: 1.4rem;
    }

    .certificates .box .content h3 {
        font-size: 1.8rem;
    }

    .certificates .box .content p {
        font-size: 1.3rem;
    }

    .certificates .box .content h4 {
        font-size: 1.5rem;
    }
}