/**
 * Certification Page - Specific Styles
 * Uses homepage-enhancements.css for common components
 */

/* Body */
body.certification-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Override for Certification Page - Dark initially, white on scroll */
.certification-page .site-header {
    background: rgba(13, 13, 13, 0.98);
}

.certification-page .site-header .logo img {
    filter: brightness(0) invert(1);
}

.certification-page .site-header .main-nav a {
    color: #999;
}

.certification-page .site-header .main-nav a:hover,
.certification-page .site-header .main-nav a.active {
    color: #fff;
}

.certification-page .site-header .lang-switch a {
    color: #666;
}

.certification-page .site-header .lang-switch a.active,
.certification-page .site-header .lang-switch a:hover {
    color: #fff;
}

.certification-page .site-header .lang-switch span {
    color: #444;
}

.certification-page .site-header .mobile-menu-toggle span {
    background: #fff;
}

/* Scrolled state - white background */
.certification-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.certification-page .site-header.scrolled .logo img {
    filter: none;
}

.certification-page .site-header.scrolled .main-nav a {
    color: #666;
}

.certification-page .site-header.scrolled .main-nav a:hover,
.certification-page .site-header.scrolled .main-nav a.active {
    color: #000;
}

.certification-page .site-header.scrolled .lang-switch a {
    color: #999;
}

.certification-page .site-header.scrolled .lang-switch a.active,
.certification-page .site-header.scrolled .lang-switch a:hover {
    color: #000;
}

.certification-page .site-header.scrolled .lang-switch span {
    color: #ddd;
}

.certification-page .site-header.scrolled .mobile-menu-toggle span {
    background: #222;
}

/* Page Hero */
.certification-page .page-hero {
    background: #0d0d0d;
    padding: 100px 0 35px;
    text-align: center;
}

.certification-page .page-hero .section-tag {
    color: #05809f;
    margin-bottom: 25px;
}

.certification-page .page-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.certification-page .page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Certification Section */
.certification-section {
    padding: 80px 0 120px;
    background: #fff;
}

.certification-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.certification-intro h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #222;
    margin: 0 0 15px 0;
}

.certification-intro p {
    font-size: 1rem;
    color: #888;
    margin: 0;
    line-height: 1.7;
}

/* Certification Grid */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.certification-item {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certification-item:hover {
    border-color: #ddd;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.cert-image {
    aspect-ratio: 1/1.4;
    overflow: hidden;
    background: #fafafa;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certification-item:hover .cert-image img {
    transform: scale(1.03);
}

.cert-info {
    padding: 20px;
    text-align: center;
}

.cert-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
}

.cert-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .certification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .certification-page .page-hero {
        padding: 100px 0 40px;
    }

    .certification-page .page-hero h1 {
        font-size: 2.5rem;
    }

    .certification-section {
        padding: 60px 0 100px;
    }

    .certification-intro {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .certification-page .page-hero {
        padding: 90px 0 35px;
    }

    .certification-page .page-hero h1 {
        font-size: 2rem;
    }

    .certification-page .page-hero p {
        font-size: 1rem;
    }

    .certification-section {
        padding: 50px 0 80px;
    }

    .certification-grid {
        gap: 20px;
    }

    .certification-intro h2 {
        font-size: 1.5rem;
    }

    .cert-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .certification-page .page-hero {
        padding: 85px 0 30px;
    }

    .certification-page .page-hero h1 {
        font-size: 1.7rem;
    }

    .certification-section {
        padding: 40px 0 60px;
    }

    .certification-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cert-info h3 {
        font-size: 13px;
    }

    .cert-info p {
        font-size: 11px;
    }
}
