/* assets/css/certificates-style.css */

/* Reusable Section Heading Styles */
.section-heading {
    font-size: 1.875rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-bottom: 10px;
    text-align: center;
}
.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #555; /* Using a slightly darker grey for better contrast */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- Hero Section (Certificates Page Specific) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 280px;
    background-image: url('../images/certificate-hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white; /* Explicitly set color for hero */
    margin-bottom: 10px;
}
.hero-content p {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.9;
}

/* --- Certifications Display Section --- */
.certifications-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}
.cert-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}
.cert-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.cert-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: transparent; 
    border: none;
    padding: 0;
}
.cert-icon img:hover {
    transform: scale(1.05);
}
.certifications-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.certifications-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* --- Commitment Section --- */
.commitment-section {
    padding: 80px 20px;
    background-color: #f0f2f5; /* Light grey background */
}
.commitment-content {
    display: flex;
    flex-direction: column; /* Mobile first: stack items */
    align-items: center;
    gap: 40px;
    max-width: 1100px; /* Allow a bit more width for the content */
    margin: 0 auto;
}
.commitment-text {
    text-align: center; /* Center text on mobile */
    flex: 1;
}
.commitment-text .section-heading {
    margin-bottom: 20px; /* Space between heading and paragraph */
}
.commitment-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}
.commitment-image {
    flex: 1;
    width: 100%; /* Full width on mobile */
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.commitment-image img {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom space under image */
}

/* --- Media Queries --- */
@media (min-width: 768px) {
    .section-heading { font-size: 2.25rem; }
    .hero-section { height: 350px; }
    .hero-content h1 { font-size: 3.5rem; }
    .cert-icons-grid { grid-template-columns: repeat(3, 1fr); }

    /* UPDATE FOR COMMITMENT SECTION ALIGNMENT */
    .commitment-content {
        flex-direction: row; /* Side-by-side on desktop */
        align-items: center; /* Vertically align text and image */
        gap: 60px;
    }
    .commitment-text {
        text-align: left; /* Left-align text on desktop */
    }
    .commitment-text .section-heading {
        text-align: left; /* Ensure heading is also left-aligned */
    }
    .commitment-image {
        flex: 0 0 45%; /* Give image a specific size relative to container */
        max-width: 500px;
    }
}
@media (min-width: 1024px) {
    .section-heading { font-size: 2.75rem; }
    .hero-section { height: 420px; }
    .hero-content h1 { font-size: 4rem; }
    .cert-icons-grid { grid-template-columns: repeat(5, 1fr); }
    .commitment-content { gap: 80px; }
}