/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Certificate Hero Section */
.certificate-hero {
    min-height: 40vh;
    background-image: url('../../images/aptech_certificates.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 140px 30px 40px 30px;
    position: relative;
    overflow: hidden;
}

.certificate-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.certificate-hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.certificate-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
    line-height: 1.1;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.certificate-hero-content p {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    word-break: keep-all;
    word-wrap: break-word;
    color: white;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Certificate Main Content Section */
.certificate-content {
    min-height: 100vh;
    background: white;
    padding: 80px 0;
    position: relative;
}

.certificate-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Certificate Row (Each Section) */
.certificate-row {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.certificate-row.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title */
.certificate-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
}

.title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
}

/* Certificate Grid */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Certificate Item */
.certificate-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-8px);
}

.certificate-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.certificate-item:hover img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(1.03);
}

.certificate-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin: 20px 0 0 0;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .certificate-hero {
        min-height: 35vh !important;
        padding: 100px 20px 30px 20px !important;
    }

    .certificate-hero-content h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .certificate-hero-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .certificate-content {
        padding: 50px 0 !important;
    }

    .certificate-container {
        padding: 0 15px !important;
    }

    .certificate-section-title {
        font-size: 18px !important;
    }

    .certificate-row {
        margin-bottom: 50px !important;
    }

    /* Mobile grid: 2 columns */
    .certificate-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .certificate-item img {
        max-width: 180px !important;
    }

    .certificate-item h3 {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    /* Mobile grid: 1 column */
    .certificate-grid {
        grid-template-columns: 1fr !important;
    }

    .certificate-section-title {
        font-size: 16px !important;
    }

    .certificate-item h3 {
        font-size: 12px !important;
    }
}
