/* =====================================================
   CERTIFICATIONS PAGE STYLES - Clean & Optimized
   ===================================================== */

/* Certifications Hero Section */
.certifications-hero {
    position: relative;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    background-image: url('../img/certification/certification_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    height: 40vh;
    min-height: 350px;
    margin-top: 80px;
}

.certifications-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.certifications-hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

.certifications-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* Certifications Table Section */
.certifications-table-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.certification-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.certification-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
}

.certifications-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.certifications-table th, 
.certifications-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.certifications-table tr:last-child td {
    border-bottom: none;
}

.certifications-table th {
    background-color: #f9fafb;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certifications-table td:first-child {
    font-weight: 600;
    color: #1f2937;
}

.cert-icon-present {
    color: #10b981;
    font-size: 1.5rem;
}

/* Certifications Accordion Section */
.certifications-accordion-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.accordion-item {
    border-bottom: 2px solid #e5e7eb;
    transition: border-bottom-color 0.3s ease;
}

.accordion-item:hover {
    border-bottom-color: #217c76;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}

.accordion-header:hover h3,
.accordion-header.active {
    color: #217c76;
}

.accordion-icon {
    font-size: 1.4rem;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-header:hover .accordion-icon,
.accordion-header.active .accordion-icon {
    color: #217c76;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.active {
    max-height: 300px;
}

.accordion-body {
    padding: 0 0 40px 0;
}

.accordion-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    max-width: 900px;
}

/* Animation Classes */
.animate-on-scroll,
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate,
.animate-fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-animation .animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.animate .animate-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.animate .animate-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.animate .animate-item:nth-child(3) { transition-delay: 0.3s; }

.stagger-animation.animate .animate-item {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-hero {
        height: 35vh;
        min-height: 300px;
        background-attachment: scroll;
        margin-top: 70px;
    }
    
    .certifications-hero h1 {
        font-size: 2rem;
    }

    .certifications-table-section,
    .certifications-accordion-section {
        padding: 60px 0;
    }
    
    .accordion-header {
        padding: 24px 0;
    }
    
    .accordion-header h3 {
        font-size: 1.25rem;
    }
    
    .accordion-body {
        padding: 0 0 32px 0;
    }
    
    .accordion-body p,
    .certification-intro {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .certifications-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .certifications-hero h1 {
        font-size: 2rem;
    }
    
    .accordion-header {
        padding: 20px 0;
    }
    
    .accordion-header h3 {
        font-size: 1.1rem;
    }
    
    .accordion-body {
        padding: 0 0 28px 0;
    }
    
    .accordion-body p {
        font-size: 0.95rem;
    }
}